Browse Source

usbutils - usb_bulk_transfer fix the buf/data fix

nfactor-troky
Kano 11 years ago
parent
commit
61c2ac5714
  1. 2
      usbutils.c

2
usbutils.c

@ -2288,7 +2288,7 @@ usb_bulk_transfer(struct libusb_device_handle *dev_handle, int intinfo,
STATS_TIMEVAL(&tv_start); STATS_TIMEVAL(&tv_start);
cg_rlock(&cgusb_fd_lock); cg_rlock(&cgusb_fd_lock);
err = libusb_bulk_transfer(dev_handle, endpoint, data, err = libusb_bulk_transfer(dev_handle, endpoint, buf,
length, transferred, timeout); length, transferred, timeout);
errn = errno; errn = errno;
cg_runlock(&cgusb_fd_lock); cg_runlock(&cgusb_fd_lock);

Loading…
Cancel
Save