summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorManish Narani <manish.narani@xilinx.com>2017-03-20 10:35:29 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2017-03-30 10:36:50 +0200
commitafea03fcf3d5db8a968f4b97797b8b83ada0dba3 (patch)
tree56219fe35f4a771f592d759637a2ad45539e584d /drivers
parenttcmu: Allow cmd_time_out to be set to zero (disabled) (diff)
downloadlinux-afea03fcf3d5db8a968f4b97797b8b83ada0dba3.tar.xz
linux-afea03fcf3d5db8a968f4b97797b8b83ada0dba3.zip
usb: gadget: Correct usb EP argument for BOT status request
This patch corrects the argument in usb_ep_free_request as it is mistakenly set to ep_out. It should be ep_in for status request. Signed-off-by: Manish Narani <mnarani@xilinx.com> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/function/f_tcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_tcm.c b/drivers/usb/gadget/function/f_tcm.c
index d2351139342f..a82e2bd5ea34 100644
--- a/drivers/usb/gadget/function/f_tcm.c
+++ b/drivers/usb/gadget/function/f_tcm.c
@@ -373,7 +373,7 @@ static void bot_cleanup_old_alt(struct f_uas *fu)
usb_ep_free_request(fu->ep_in, fu->bot_req_in);
usb_ep_free_request(fu->ep_out, fu->bot_req_out);
usb_ep_free_request(fu->ep_out, fu->cmd.req);
- usb_ep_free_request(fu->ep_out, fu->bot_status.req);
+ usb_ep_free_request(fu->ep_in, fu->bot_status.req);
kfree(fu->cmd.buf);