usb: musb: fix bug in musb_cleanup_urb
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Wed, 14 Mar 2012 12:03:35 +0000 (17:03 +0530)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Apr 2012 16:11:48 +0000 (19:11 +0300)
commit692933b2ccfce02400dc8360a97acde2846e8541
treeaa7a78df5ee6e02264fc5bbf85980a21ad2c57ff
parent8545e6031a719675da9f3d21f1c8ce143dac7fe5
usb: musb: fix bug in musb_cleanup_urb

Control transfers with data expected from device to host will use usb_rcvctrlpipe()
for urb->pipe so for such urbs 'is_in' will be set causing control urb to fall
into the first "if" condition in musb_cleanup_urb().

Fixed by adding logic to check for non control endpoints.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_host.c