OMAP:MUSB: Corrects urb unlink function path
authorAjay Kumar Gupta <[email protected]>
Thu, 11 Sep 2008 08:53:21 +0000 (11:53 +0300)
committerGreg Kroah-Hartman <[email protected]>
Fri, 17 Oct 2008 21:40:58 +0000 (14:40 -0700)
commit2492e6747f2441562b1341cef1d46e076f346a1f
tree9f2f1928a36b4fb7e05f79e0c694382713dc8c92
parentae5ad2963939d24eb77b8fa725d0703dc0f97a47
OMAP:MUSB: Corrects urb unlink function path

Fixes kernel panic while ISO IN transfer is aborted.Replaced
usb_hcd_unlink_urb_from_ep() from musb_giveback() to __musb_giveback()
to make sure urb is unlinked before giveback when __musb_giveback() is
called from musb_urb_dequeue().

Acquired musb->lock() before usb_hcd_unlink_urb_from_ep() within in
enqueue path.

Signed-off-by: Ajay Kumar Gupta <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/musb/musb_host.c