linux/drivers/usb/dwc3
George Cherian 5bf8fae33d usb: dwc3: gadget: free trb pool only from epnum 2
we never allocate a TRB pool for physical endpoints
0 and 1 so trying to free it (a invalid TRB pool pointer)
will lead us in a warning while removing dwc3.ko module.

In order to fix the situation, all we have to do is skip
dwc3_free_trb_pool() for physical endpoints 0 and 1 just
as we while deleting endpoints from the endpoints list.

Cc: stable@vger.kernel.org
Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-05-28 22:17:20 +03:00
..
core.c usb: dwc3: add CONFIG_PM_SLEEP to suspend/resume functions 2013-04-02 11:42:51 +03:00
core.h usb: dwc3: core: fix wrong OTG event regitser offset 2013-03-18 11:18:13 +02:00
debug.h usb: dwc: remove "All rights reserved" statement. 2011-10-04 10:25:52 -07:00
debugfs.c usb: dwc3: core: fix wrong OTG event regitser offset 2013-03-18 11:18:13 +02:00
dwc3-exynos.c usb: dwc3: exynos: PHY should be deleted later than dwc3 core 2013-05-28 22:17:08 +03:00
dwc3-omap.c usb: dwc3: add CONFIG_PM_SLEEP to suspend/resume functions 2013-04-02 11:42:51 +03:00
dwc3-pci.c usb: dwc3: pci: PHY should be deleted later than dwc3 core 2013-05-28 22:16:49 +03:00
ep0.c usb: dwc3: remove our homebrew state mechanism 2013-03-18 11:17:13 +02:00
gadget.c usb: dwc3: gadget: free trb pool only from epnum 2 2013-05-28 22:17:20 +03:00
gadget.h usb: dwc3: correct set_halt implementation for ep0 2012-07-02 10:02:07 +03:00
host.c usb: dwc3: host: Change platform device ID for xhci-hcd to AUTO 2013-01-25 13:19:52 +02:00
io.h usb: dwc3: core: split host address space 2012-04-24 15:37:04 +03:00
Kconfig usb: dwc3: Fix compilation break when building with USB_DWC3_DUAL_ROLE=y 2013-05-15 17:26:00 +03:00
Makefile usb: dwc3: remove dwc3 dependency on host AND gadget. 2013-01-18 14:55:55 +02:00