android_kernel_oneplus_msm8998/drivers/usb/gadget
Guido Kiener fd1f90b4fa usb: gadget: net2272: Fix net2272_dequeue()
[ Upstream commit 091dacc3cc10979ab0422f0a9f7fcc27eee97e69 ]

Restore the status of ep->stopped in function net2272_dequeue().

When the given request is not found in the endpoint queue
the function returns -EINVAL without restoring the state of
ep->stopped. Thus the endpoint keeps blocked and does not transfer
any data anymore.

This fix is only compile-tested, since we do not have a
corresponding hardware. An analogous fix was tested in the sibling
driver. See "usb: gadget: net2280: Fix net2280_dequeue()"

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
2019-05-16 19:44:57 +02:00
..
function usb: gadget: rndis: free response queue during REMOTE_NDIS_RESET_MSG 2019-04-03 06:23:24 +02:00
legacy USB: gadgetfs: Fix a potential memory leak in 'dev_config()' 2017-12-16 10:33:52 +01:00
udc usb: gadget: net2272: Fix net2272_dequeue() 2019-05-16 19:44:57 +02:00
composite.c usb: gadget: composite: fix dereference after null check coverify warning 2019-04-03 06:23:18 +02:00
config.c
configfs.c usb: gadget: configfs: add mutex lock before unregister gadget 2019-04-03 06:23:24 +02:00
configfs.h
epautoconf.c
functions.c
Kconfig
Makefile
u_f.c usb: gadget: align buffer size when allocating for OUT endpoint 2018-04-08 11:51:56 +02:00
u_f.h usb: gadget: align buffer size when allocating for OUT endpoint 2018-04-08 11:51:56 +02:00
u_os_desc.h
usbstring.c