Commit 61c2ac571429ff5d6ef4ed42803af58df74373e0

Kano 2013-09-27T14:57:22

usbutils - usb_bulk_transfer fix the buf/data fix

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/usbutils.c b/usbutils.c
index ba2c9d3..2b3390b 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -2288,7 +2288,7 @@ usb_bulk_transfer(struct libusb_device_handle *dev_handle, int intinfo,
 
 			STATS_TIMEVAL(&tv_start);
 			cg_rlock(&cgusb_fd_lock);
-			err = libusb_bulk_transfer(dev_handle, endpoint, data,
+			err = libusb_bulk_transfer(dev_handle, endpoint, buf,
 						   length, transferred, timeout);
 			errn = errno;
 			cg_runlock(&cgusb_fd_lock);