From 21fd80dfa4fa5e8f993c5abfd093c5a740662027 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 26 Apr 2013 23:22:19 +1000 Subject: [PATCH] Handle failed tolines command in bflsc driver. --- driver-bflsc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driver-bflsc.c b/driver-bflsc.c index 097293ab..7ca551d1 100644 --- a/driver-bflsc.c +++ b/driver-bflsc.c @@ -606,6 +606,9 @@ static bool getinfo(struct cgpu_info *bflsc, int dev) memset(&sc_dev, 0, sizeof(struct bflsc_dev)); sc_info->sc_count = 1; res = tolines(bflsc, dev, &(buf[0]), &lines, &items, C_GETDETAILS); + if (!res) + return false; + for (i = 0; i < lines-2; i++) { res = breakdown(ONECOLON, items[i], &count, &firstname, &fields, &lf); if (lf)