1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-08 22:08:02 +00:00

klondike - initialise stat_lock

This commit is contained in:
Kano 2013-10-30 11:44:52 +11:00
parent 75230ed808
commit f562174a39

View File

@ -821,6 +821,7 @@ static bool klondike_detect_one(struct libusb_device *dev, struct usb_find_devic
break; break;
update_usb_stats(klncgpu); update_usb_stats(klncgpu);
applog(LOG_DEBUG, "Klondike cgpu added"); applog(LOG_DEBUG, "Klondike cgpu added");
rwlock_init(&klninfo->stat_lock);
cglock_init(&klninfo->klist_lock); cglock_init(&klninfo->klist_lock);
return true; return true;
} }