|
@@ -1474,8 +1474,6 @@ static int proc_do_submiturb(struct usb_dev_state *ps, struct usbdevfs_urb *uurb
|
|
|
u = 0;
|
|
|
switch (uurb->type) {
|
|
|
case USBDEVFS_URB_TYPE_CONTROL:
|
|
|
- if (is_in)
|
|
|
- allow_short = true;
|
|
|
if (!usb_endpoint_xfer_control(&ep->desc))
|
|
|
return -EINVAL;
|
|
|
/* min 8 byte setup packet */
|
|
@@ -1505,6 +1503,8 @@ static int proc_do_submiturb(struct usb_dev_state *ps, struct usbdevfs_urb *uurb
|
|
|
is_in = 0;
|
|
|
uurb->endpoint &= ~USB_DIR_IN;
|
|
|
}
|
|
|
+ if (is_in)
|
|
|
+ allow_short = true;
|
|
|
snoop(&ps->dev->dev, "control urb: bRequestType=%02x "
|
|
|
"bRequest=%02x wValue=%04x "
|
|
|
"wIndex=%04x wLength=%04x\n",
|