Browse Source

Bugfix: littlefury: Ensure devices that fail probe are closed properly

Luke Dashjr 12 years ago
parent
commit
1a98231ba4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-littlefury.c

+ 2 - 0
driver-littlefury.c

@@ -304,6 +304,8 @@ bool littlefury_detect_one(const char *devpath)
 	return add_cgpu(cgpu);
 	return add_cgpu(cgpu);
 
 
 err:
 err:
+	if (fd != -1)
+		serial_close(fd);
 	return false;
 	return false;
 }
 }