From: Arvid Brodin Date: Wed, 20 Jul 2011 01:13:46 +0000 (+0200) Subject: usb/isp1760: Added missing call to usb_hcd_check_unlink_urb() during unlink X-Git-Tag: v3.0.9~98 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e530d1a21e5c2fe3202b2fdf2f0b61100c12c70e;p=karo-tx-linux.git usb/isp1760: Added missing call to usb_hcd_check_unlink_urb() during unlink commit 17d3e145a4ad680b3d1b1c30d0696a5bbb2b65c4 upstream. Signed-off-by: Arvid Brodin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/isp1760-hcd.c b/drivers/usb/host/isp1760-hcd.c index 55d3d5859ac5..840beda66dd9 100644 --- a/drivers/usb/host/isp1760-hcd.c +++ b/drivers/usb/host/isp1760-hcd.c @@ -1583,6 +1583,9 @@ static int isp1760_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int retval = 0; spin_lock_irqsave(&priv->lock, spinflags); + retval = usb_hcd_check_unlink_urb(hcd, urb, status); + if (retval) + goto out; qh = urb->ep->hcpriv; if (!qh) {