1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00

Specifically set the cancellable state for it to not be uninitialised in the usb transfer struct.

This commit is contained in:
Con Kolivas 2013-10-24 21:52:50 +11:00
parent b52bb5c9e2
commit c2c6987784

View File

@ -2313,7 +2313,8 @@ static int usb_submit_transfer(struct usb_transfer *ut, struct libusb_transfer *
ut->cancellable = true; ut->cancellable = true;
INIT_LIST_HEAD(&ut->ct.list); INIT_LIST_HEAD(&ut->ct.list);
list_add(&ct_list, &ut->ct.list); list_add(&ct_list, &ut->ct.list);
} } else
ut->cancellable = false;;
cg_wunlock(&cgusb_fd_lock); cg_wunlock(&cgusb_fd_lock);
return err; return err;