diff options
author | Manish Narani <manish.narani@xilinx.com> | 2017-03-20 15:05:29 +0530 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-03-30 01:36:50 -0700 |
commit | afea03fcf3d5db8a968f4b97797b8b83ada0dba3 (patch) | |
tree | 56219fe35f4a771f592d759637a2ad45539e584d /drivers/usb/gadget | |
parent | 740372b76e7966604e0f4dd0de13135513024f0d (diff) | |
download | linux-stable-afea03fcf3d5db8a968f4b97797b8b83ada0dba3.tar.gz linux-stable-afea03fcf3d5db8a968f4b97797b8b83ada0dba3.tar.bz2 linux-stable-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/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/function/f_tcm.c | 2 |
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); |