Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8c74049 authored by Werner Johansson's avatar Werner Johansson Committed by Android Git Automerger
Browse files

am 931bdcc0: Set explicit timeout on USB control transfer

Merge commit '931bdcc0' into gingerbread-plus-aosp

* commit '931bdcc0':
  Set explicit timeout on USB control transfer
parents 0e5a6b12 931bdcc0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {