Commit 31bbaa149128c3f192cbac20fa358640786018ed

Con Kolivas 2013-11-05T21:21:57

Don't free the cgpu data on shutting down avalon driver.

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