Keep the old hfa device data intact with a clean thread shutdown to allow it to be re-hotplugged with the old information.
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 = {