diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index 4ed457edde23eb02d0c7813fe3ec70940aa34dcd..51a6da256772a89fcf56b56e0d42c1adcebbfe99 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c @@ -1345,6 +1345,9 @@ static int unlink1(struct usbtest_dev *dev, int pipe, int size, int async) while (!completion_done(&completion)) { retval = usb_unlink_urb(urb); + if (retval == 0 && usb_pipein(urb->pipe)) + retval = simple_check_buf(dev, urb); + switch (retval) { case -EBUSY: case -EIDRM: