linux-stable/drivers/usb/gadget
Guido Kiener 5aedac453b usb: gadget: net2272: Fix net2272_dequeue()
[ Upstream commit 091dacc3cc ]

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-04 09:15:19 +02:00
..
function usb: f_fs: Avoid crash due to out-of-scope stack ptr access 2019-04-05 22:31:34 +02:00
legacy License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
udc usb: gadget: net2272: Fix net2272_dequeue() 2019-05-04 09:15:19 +02:00
composite.c usb: gadget: composite: fix delayed_status race condition when set_interface 2018-08-24 13:09:00 +02:00
config.c
configfs.c usb: gadget: configfs: Fix memory leak of interface directory data 2017-10-11 13:14:37 +03:00
configfs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
epautoconf.c
functions.c
Kconfig usb: gadget: allow serial gadget console on other configs 2017-08-15 14:18:54 +03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
u_f.c
u_f.h USB: gadget: f_midi: fixing a possible double-free in f_midi 2018-04-24 09:36:25 +02:00
u_os_desc.h
usbstring.c