linux-uconsole/drivers/usb/dwc3
Thinh Nguyen ceaeb21b4b usb: dwc3: gadget: Fix request complete check
commit ea0d762775 upstream.

We can only check for IN direction if the request had completed. For OUT
direction, it's perfectly fine that the host can send less than the
setup length. Let's return true fall all cases of OUT direction.

Fixes: e0c42ce590 ("usb: dwc3: gadget: simplify IOC handling")
Cc: stable@vger.kernel.org
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Link: https://lore.kernel.org/r/ac5a3593a94fdaa3d92e6352356b5f7a01ccdc7c.1576291140.git.thinhn@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-12 12:17:29 +01:00
..
core.c usb: dwc3: don't log probe deferrals; but do log other error codes 2019-12-13 08:51:46 +01:00
core.h usb: dwc3: gadget: remove wait_end_transfer 2019-07-03 13:14:44 +02:00
debug.h usb: dwc3: debugfs: Properly print/set link state for HS 2019-12-13 08:51:45 +01:00
debugfs.c usb: dwc3: debugfs: Properly print/set link state for HS 2019-12-13 08:51:45 +01:00
drd.c
dwc3-exynos.c
dwc3-haps.c
dwc3-keystone.c
dwc3-of-simple.c
dwc3-omap.c
dwc3-pci.c usb: dwc3: pci: add ID for the Intel Comet Lake -H variant 2019-12-17 20:34:44 +01:00
dwc3-qcom.c
dwc3-st.c
ep0.c usb: dwc3: ep0: Clear started flag on completion 2019-12-17 20:34:45 +01:00
gadget.c usb: dwc3: gadget: Fix request complete check 2020-01-12 12:17:29 +01:00
gadget.h usb: dwc3: gadget: introduce cancelled_list 2019-07-03 13:14:44 +02:00
host.c
io.h
Kconfig
Makefile
trace.c
trace.h usb: dwc3: trace: add missing break statement to make compiler happy 2019-02-12 19:47:06 +01:00
ulpi.c