Browse Source

klondike - initialise stat_lock

nfactor-troky
Kano 11 years ago
parent
commit
f562174a39
  1. 1
      driver-klondike.c

1
driver-klondike.c

@ -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;
} }

Loading…
Cancel
Save