Commit 7ce7de292ea8ee05db647e6dff044ca816529d0e

Con Kolivas 2014-02-27T22:14:25

Keep the old hfa device data intact with a clean thread shutdown to allow it to be re-hotplugged with the old information.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 7798fd2..382ab58 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -1807,8 +1807,8 @@ static void hfa_shutdown(struct thr_info *thr)
 	free(info->die_statistics);
 	free(info->die_status);
 	free(info->die_data);
-	hashfast->device_data = NULL;
-	free(info);
+	/* Keep the device data intact to allow new instances to match old
+	 * ones. */
 }
 
 struct device_drv hashfast_drv = {