From: Felipe Balbi Date: Tue, 22 Mar 2011 09:38:49 +0000 (+0200) Subject: usb: musb: gadget: check the correct list_head X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d5ad13eac320292f64071ea7ded1b661edd9430;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git usb: musb: gadget: check the correct list_head We are now using our own list_head, so we should be checking against that, not the gadget driver's list_head. Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 9ecb057902ef..6dfbf9ffd7a6 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -1296,7 +1296,7 @@ static int musb_gadget_dequeue(struct usb_ep *ep, struct usb_request *request) } /* if the hardware doesn't have the request, easy ... */ - if (musb_ep->req_list.next != &request->list || musb_ep->busy) + if (musb_ep->req_list.next != &req->list || musb_ep->busy) musb_g_giveback(musb_ep, request, -ECONNRESET); /* ... else abort the dma transfer ... */