android_kernel_msm-6.1_noth.../drivers/usb
Udipto Goswami bb03899b9b usb: gadget: f_fs: Ensure ep0req is dequeued before free_request
[ Upstream commit ce405d561b020e5a46340eb5146805a625dcacee ]

As per the documentation, function usb_ep_free_request guarantees
the request will not be queued or no longer be re-queued (or
otherwise used). However, with the current implementation it
doesn't make sure that the request in ep0 isn't reused.

Fix this by dequeuing the ep0req on functionfs_unbind before
freeing the request to align with the definition.

Fixes: ddf8abd259 ("USB: f_fs: the FunctionFS driver")
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
Tested-by: Krishna Kurapati <quic_kriskura@quicinc.com>
Link: https://lore.kernel.org/r/20221215052906.8993-3-quic_ugoswami@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:34:21 +01:00
..
atm usb: move from strlcpy with unused retval to strscpy 2022-08-19 11:08:54 +02:00
c67x00
cdns3 usb: cdns3: remove fetched trb from cache before dequeuing 2023-01-24 07:24:38 +01:00
chipidea usb: chipidea: fix deadlock in ci_otg_del_timer 2022-11-09 12:34:18 +01:00
class USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
common Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout" 2023-01-18 11:58:33 +01:00
core usb: core: hub: disable autosuspend for TI TUSB8041 2023-01-24 07:24:35 +01:00
dwc2 usb: dwc2: Remove redundant license text 2022-09-22 15:52:29 +02:00
dwc3 usb: dwc3: xilinx: include linux/gpio/consumer.h 2023-01-12 12:02:34 +01:00
early
gadget usb: gadget: f_fs: Ensure ep0req is dequeued before free_request 2023-02-01 08:34:21 +01:00
host usb: host: ehci-fsl: Fix module alias 2023-01-24 07:24:38 +01:00
image usb/image: fix repeated words in comments 2022-07-27 14:33:53 +02:00
isp1760
misc usb: misc: onboard_hub: Move 'attach' work to the driver 2023-01-24 07:24:35 +01:00
mon usb: mon: make mmapped memory read only 2022-09-22 15:52:29 +02:00
mtu3 usb: mtu3: fix failed runtime suspend in host only mode 2022-09-30 13:55:48 +02:00
musb usb: musb: fix error return code in omap2430_probe() 2023-01-24 07:24:38 +01:00
phy USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
renesas_usbhs usb: renesas: Fix refcount leak bug 2022-06-21 16:39:03 +02:00
roles usb: roles: fix of node refcount leak in usb_role_switch_is_parent() 2022-12-31 13:32:41 +01:00
serial USB: serial: cp210x: add SCALANCE LPE-9000 device id 2023-01-24 07:24:38 +01:00
storage usb-storage: apply IGNORE_UAS only for HIKSEMI MD202 on RTL9210 2023-01-24 07:24:38 +01:00
typec usb: ucsi: Ensure connector delayed work items are flushed 2023-02-01 08:34:21 +01:00
usbip usbip: add USBIP_URB_* URB transfer flags 2022-08-31 09:07:53 +02:00
Kconfig
Makefile
usb-skeleton.c