Commit c22e080b25c67a019412aea6d39d438a4c0d4fc0

Con Kolivas 2014-02-23T20:56:40

Break out of hfa inherit if there is no device data.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 02ade5d..945161f 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -521,6 +521,8 @@ static bool hfa_inherit_device(struct cgpu_info *hashfast)
 		if (!cgpu->usbinfo.nodev)
 			continue;
 		cinfo = cgpu->device_data;
+		if (!cinfo)
+			continue;
 		if (info->serial_number == cinfo->serial_number) {
 			found = cgpu;
 			break;