mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 08:22:39 +00:00
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 <balbi@ti.com>
This commit is contained in:
parent
7a180e70cf
commit
3d5ad13eac
@ -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 ... */
|
||||
|
Loading…
Reference in New Issue
Block a user