linux_dsm_epyc7002/drivers/usb/dwc3
Felipe Balbi 4cb4221764 usb: dwc3: gadget: fix for possible endpoint disable race
when we call dwc3_gadget_giveback(), we end up
releasing our controller's lock. Another thread
could get scheduled and disable the endpoint,
subsequently setting dep->endpoint.desc to NULL.

In that case, we would end up dereferencing a NULL
pointer which would result in a Kernel Oops. Let's
avoid the problem by simply returning early if we
have a NULL descriptor.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2016-06-20 12:32:37 +03:00
..
core.c usb: dwc3: core: simplify suspend/resume operations 2016-06-20 12:32:36 +03:00
core.h usb: dwc3: gadget: hold gadget IRQ in dwc->irq_gadget 2016-06-20 12:32:36 +03:00
debug.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
debug.h usb: dwc3: make dwc3_debugfs_init return value be void 2016-04-19 11:11:53 +03:00
debugfs.c usb: dwc3: gadget: add a pointer to endpoint registers 2016-06-20 12:32:35 +03:00
dwc3-exynos.c usb: dwc3: exynos: Fix deferred probing storm. 2016-05-31 11:12:42 +03:00
dwc3-keystone.c usb: dwc3: keystone: drop dma_mask configuration 2016-04-06 16:36:01 +03:00
dwc3-of-simple.c usb: dwc3: Remove impossible check for of_clk_get_parent_count() < 0 2016-02-26 16:01:32 -08:00
dwc3-omap.c usb: changes for v4.7 merge window 2016-04-28 09:32:39 -07:00
dwc3-pci.c usb: dwc3: pci: pass the platform device as a parameter to dwc3_pci_quirks() 2016-04-28 09:01:59 +03:00
dwc3-st.c usb: dwc3: st: Fix USB_DR_MODE_PERIPHERAL configuration. 2016-05-31 11:24:31 +03:00
ep0.c usb: dwc3: gadget: add a pointer to endpoint registers 2016-06-20 12:32:35 +03:00
gadget.c usb: dwc3: gadget: fix for possible endpoint disable race 2016-06-20 12:32:37 +03:00
gadget.h usb: dwc3: gadget: add a pointer to endpoint registers 2016-06-20 12:32:35 +03:00
host.c usb: dwc3: make LPM configurable in DT 2015-03-10 15:33:33 -05:00
io.h usb: dwc3: gadget: add a pointer to endpoint registers 2016-06-20 12:32:35 +03:00
Kconfig usb: dwc3: remove dwc3-qcom in favor of dwc3-of-simple 2015-12-15 09:12:41 -06:00
Makefile usb: dwc3: remove dwc3-qcom in favor of dwc3-of-simple 2015-12-15 09:12:41 -06:00
platform_data.h usb: dwc3: add disable receiver detection in P3 quirk 2016-04-18 15:23:44 +03:00
trace.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
trace.h usb: dwc3: trace: show request flags 2015-12-15 09:12:41 -06:00
ulpi.c usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00