am 931bdcc0: Set explicit timeout on USB control transfer
Merge commit '931bdcc09a3d805cf25033951adb95c8e5159e46' into gingerbread-plus-aosp * commit '931bdcc09a3d805cf25033951adb95c8e5159e46': Set explicit timeout on USB control transfer
This commit is contained in:
commit
a8c7404956
|
@ -137,6 +137,7 @@ static int filter_usb_device(int fd, char *ptr, int len, int writable,
|
|||
ctrl.wIndex = 0;
|
||||
ctrl.wLength = sizeof(buffer);
|
||||
ctrl.data = buffer;
|
||||
ctrl.timeout = 50;
|
||||
|
||||
result = ioctl(fd, USBDEVFS_CONTROL, &ctrl);
|
||||
if (result > 0) {
|
||||
|
|
Loading…
Reference in New Issue