kernel_optimize_test/drivers/usb/dwc3
Thinh Nguyen c7152763f0 usb: dwc3: Reset num_trbs after skipping
Currently req->num_trbs is not reset after the TRBs are skipped and
processed from the cancelled list. The gadget driver may reuse the
request with an invalid req->num_trbs, and DWC3 will incorrectly skip
trbs. To fix this, simply reset req->num_trbs to 0 after skipping
through all of them.

Fixes: c3acd59014 ("usb: dwc3: gadget: use num_trbs when skipping TRBs on ->dequeue()")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2019-02-13 13:02:39 +02:00
..
core.c usb: dwc3: Add workaround for isoc start transfer failure 2018-11-26 09:06:32 +02:00
core.h usb: dwc3: gadget: remove DWC3_EP_END_TRANSFER_PENDING 2019-02-04 08:46:22 +02:00
debug.h usb: dwc3: debug: purge usage of strcat 2019-02-05 09:00:14 +02:00
debugfs.c usb: dwc3: debugfs: Print/set link state for peripheral mode 2018-11-26 09:06:31 +02:00
drd.c usb: dwc3: drd: Add support for DR detection through extcon 2018-11-26 09:06:32 +02:00
dwc3-exynos.c usb: dwc3: exynos: Add support for Exynos5433 variant with all clocks 2018-10-02 10:33:01 +03:00
dwc3-haps.c usb: dwc3: haps: Workaround matching VID PID 2019-02-07 13:17:19 +02:00
dwc3-keystone.c usb: dwc3: keystone: Add support for ti,am654-dwc3 2019-01-28 12:51:29 +02:00
dwc3-of-simple.c usb: dwc3: of-simple: avoid unused function warnings 2018-08-29 09:59:37 +03:00
dwc3-omap.c
dwc3-pci.c Revert "usb: dwc3: pci: Use devm functions to get the phy GPIOs" 2018-12-07 08:13:32 +02:00
dwc3-qcom.c usb: dwc3: qcom: Add support for MSM8998 2019-01-28 12:51:29 +02:00
dwc3-st.c
ep0.c usb: dwc3: gadget: remove redundant variable maxpacket 2018-07-13 15:41:56 +02:00
gadget.c usb: dwc3: Reset num_trbs after skipping 2019-02-13 13:02:39 +02:00
gadget.h usb: dwc3: gadget: remove req->started flag 2019-01-28 12:53:15 +02:00
host.c usb: dwc3: Support option to disable USB2 LPM 2018-11-26 09:06:31 +02:00
io.h
Kconfig usb: dwc3: keystone: Add support for ti,am654-dwc3 2019-01-28 12:51:29 +02:00
Makefile usb: dwc3: Add a glue driver for Synopsys HAPS platform 2018-07-26 13:47:51 +03:00
trace.c
trace.h usb: dwc3: trace: pass trace buffer size to decoding functions 2019-02-04 15:43:38 +02:00
ulpi.c