Commit f562174a39738a5906de0d11a690bbc12a5b1461

Kano 2013-10-30T11:44:52

klondike - initialise stat_lock

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-klondike.c b/driver-klondike.c
index 807e704..a445bf4 100644
--- a/driver-klondike.c
+++ b/driver-klondike.c
@@ -821,6 +821,7 @@ static bool klondike_detect_one(struct libusb_device *dev, struct usb_find_devic
 					break;
 				update_usb_stats(klncgpu);
 				applog(LOG_DEBUG, "Klondike cgpu added");
+				rwlock_init(&klninfo->stat_lock);
 				cglock_init(&klninfo->klist_lock);
 				return true;
 			}