diff options
-rw-r--r-- | drivers/usb/misc/usbtest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index bb10846affc3..bd715006b056 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c | |||
@@ -359,8 +359,10 @@ static int simple_io( | |||
359 | urb->context = &completion; | 359 | urb->context = &completion; |
360 | while (retval == 0 && iterations-- > 0) { | 360 | while (retval == 0 && iterations-- > 0) { |
361 | init_completion(&completion); | 361 | init_completion(&completion); |
362 | if (usb_pipeout(urb->pipe)) | 362 | if (usb_pipeout(urb->pipe)) { |
363 | simple_fill_buf(urb); | 363 | simple_fill_buf(urb); |
364 | urb->transfer_flags |= URB_ZERO_PACKET; | ||
365 | } | ||
364 | retval = usb_submit_urb(urb, GFP_KERNEL); | 366 | retval = usb_submit_urb(urb, GFP_KERNEL); |
365 | if (retval != 0) | 367 | if (retval != 0) |
366 | break; | 368 | break; |