Commit b5d17a90b88563d321ce0f794b7e15a8ca3d8a2a

Con Kolivas 2014-02-27T20:40:06

Null a device driver should thread prepare fail.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index 76d586b..16e1b68 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -8402,6 +8402,7 @@ static void hotplug_process(void)
 			thr->device_thread = j;
 
 			if (cgpu->drv->thread_prepare && !cgpu->drv->thread_prepare(thr)) {
+				null_device_drv(cgpu->drv);
 				cgpu->deven = DEV_DISABLED;
 				continue;
 			}