diff mbox

[patch-v2.6.39,03/12] usb: musb: gadget: do not poke with gadget's list_head

Message ID 4D6D1295.1020809@emsys.de (mailing list archive)
State New, archived
Delegated to: Felipe Balbi
Headers show

Commit Message

Pavol Kurina March 1, 2011, 3:36 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index a1e1d24..7877ccc 100755
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1250,7 +1250,8 @@  cleanup:
  static int musb_gadget_dequeue(struct usb_ep *ep, struct usb_request 
*request)
  {
         struct musb_ep          *musb_ep = to_musb_ep(ep);
-       struct usb_request      *r;
+       struct musb_request     *req = to_musb_request(request);
+       struct musb_request     *r;
         unsigned long           flags;
         int                     status = 0;