]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
usb/isp1760: Report correct urb status after unlink
authorArvid Brodin <arvid.brodin@enea.com>
Tue, 26 Apr 2011 19:46:47 +0000 (21:46 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 00:07:49 +0000 (17:07 -0700)
This fixes a bug in my previous (2.6.38) patch series which caused
urb->status value to be wrong after unlink (broke usbtest 11, 12).

Signed-off-by: Arvid Brodin <arvid.brodin@enea.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp1760-hcd.c

index 795345ad45e62881fb8e28a1abce639a3088cac8..7b2e69aa2e98fdf2e803bb9d1c26d25ba74cb63e 100644 (file)
@@ -1633,6 +1633,7 @@ static int isp1760_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
                        ints[i].qh = NULL;
                        ints[i].qtd = NULL;
 
+                       urb->status = status;
                        isp1760_urb_done(hcd, urb);
                        if (qtd)
                                pe(hcd, qh, qtd);