am a8c74049: am 931bdcc0: Set explicit timeout on USB control transfer

Merge commit 'a8c7404956b4370162a87ae09b851266a4933b54'

* commit 'a8c7404956b4370162a87ae09b851266a4933b54':
  Set explicit timeout on USB control transfer
This commit is contained in:
Werner Johansson 2010-06-30 21:52:19 -07:00 committed by Android Git Automerger
commit 4272a7ad70
1 changed files with 1 additions and 0 deletions

View File

@ -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) {