Break out of hfa inherit if there is no device data.
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;