Commit 82a97a04f5f6ee82c91d20a6974fce00c79143e9

Con Kolivas 2013-11-05T21:27:11

Avalon doesn't like losing its device data even after it's been unplugged.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index d10567e..7cced1f 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -1611,8 +1611,6 @@ static void avalon_shutdown(struct thr_info *thr)
 	mutex_destroy(&info->lock);
 	free(avalon->works);
 	avalon->works = NULL;
-	free(avalon->device_data);
-	avalon->device_data = NULL;
 }
 
 static char *avalon_set_device(struct cgpu_info *avalon, char *option, char *setting, char *replybuf)