Browse Source

Bugfix: hashfast: Add missing serial_claim

Luke Dashjr 12 years ago
parent
commit
8f7021fe77
1 changed files with 3 additions and 0 deletions
  1. 3 0
      driver-hashfast.c

+ 3 - 0
driver-hashfast.c

@@ -223,6 +223,9 @@ bool hashfast_detect_one(const char * const devpath)
 		goto err;
 	}
 	
+	if (serial_claim_v(devpath, &hashfast_ums_drv))
+		return false;
+	
 	struct cgpu_info * const cgpu = malloc(sizeof(*cgpu));
 	*cgpu = (struct cgpu_info){
 		.drv = &hashfast_ums_drv,