|
|
@@ -339,6 +339,7 @@ void bitforce_init(struct cgpu_info *bitforce)
|
|
|
bitforce_cmd1(fdDev, 0, pdevbuf, sizeof(pdevbuf), "ZGX");
|
|
|
if (unlikely(!pdevbuf[0])) {
|
|
|
mutex_unlock(mutexp);
|
|
|
+ BFclose(fdDev);
|
|
|
applog(LOG_ERR, "%s: Error reading/timeout (ZGX)", bitforce->dev_repr);
|
|
|
return;
|
|
|
}
|
|
|
@@ -349,6 +350,7 @@ void bitforce_init(struct cgpu_info *bitforce)
|
|
|
|
|
|
if (unlikely(!strstr(pdevbuf, "SHA256"))) {
|
|
|
mutex_unlock(mutexp);
|
|
|
+ BFclose(fdDev);
|
|
|
applog(LOG_ERR, "%s: Didn't recognise BitForce on %s returned: %s", bitforce->dev_repr, devpath, pdevbuf);
|
|
|
return;
|
|
|
}
|