opnsense-src/sys/dev/usb/controller
Hans Petter Selasky d3bf5efc1f Fix device delete child function.
When detaching device trees parent devices must be detached prior to
detaching its children. This is because parent devices can have
pointers to the child devices in their softcs which are not
invalidated by device_delete_child(). This can cause use after free
issues and panic().

Device drivers implementing trees, must ensure its detach function
detaches or deletes all its children before returning.

While at it remove now redundant device_detach() calls before
device_delete_child() and device_delete_children(), mostly in
the USB controller drivers.

Tested by:		Jan Henrik Sylvester <me@janh.de>
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D8070
MFC after:		2 weeks
2016-10-17 10:20:38 +00:00
..
at91dci.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
at91dci.h - Implement fast interrupt handler to save CPU usage. 2014-08-05 18:48:12 +00:00
at91dci_atmelarm.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
at91dci_fdt.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
atmegadci.c Make a bunch of USB debug SYSCTLs tunable, so that their value(s) can 2015-01-05 15:04:17 +00:00
atmegadci.h
atmegadci_atmelarm.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
avr32dci.c Make a bunch of USB debug SYSCTLs tunable, so that their value(s) can 2015-01-05 15:04:17 +00:00
avr32dci.h
dwc_otg.c Fix interrupt loop when switching from USB device to USB host mode by 2016-07-04 17:12:22 +00:00
dwc_otg.h Avoid using the bounce buffer when the source or destination buffer is 2015-11-08 09:37:26 +00:00
dwc_otg_fdt.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
dwc_otg_fdt.h Add support for enabling the USB on the Raspberry Pi boards when it hasn't 2015-03-08 13:52:07 +00:00
dwc_otg_hisi.c Add support for the dwc usb in the HiSilicon hi6220 in the HiKey board. For 2015-09-01 17:13:04 +00:00
dwc_otgreg.h Optimise the DWC OTG host mode driver's transmit path: 2015-07-16 16:08:40 +00:00
ehci.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
ehci.h EHCI: Make core reset and port speed reading more generic. 2016-01-28 14:11:59 +00:00
ehci_fsl.c Use OF_prop_free instead of direct call to free(9) 2016-05-14 18:44:30 +00:00
ehci_imx.c ehci_interrupt is MPSAFE code. Most drivers in tree calls bus_setup_intr 2016-04-05 12:13:53 +00:00
ehci_ixp4xx.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
ehci_mv.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
ehci_pci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
ehcireg.h EHCI: Correct address of EHCI_USBMODE_LPM register is 0xC8, not 0xA8. 2016-01-30 08:27:09 +00:00
generic_ehci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
generic_ohci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
generic_usb_if.m Add driver for "generic-ohci" as defined by FDT. 2016-05-17 17:46:12 +00:00
musb_otg.c Remove misleading comment. musb supports host mode for more than two years now 2016-04-05 18:07:13 +00:00
musb_otg.h - Verify that we don't load more data into a FIFO than it is 2014-06-05 18:23:51 +00:00
musb_otg_atmelarm.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
ohci.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
ohci.h
ohci_pci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
ohci_s3c24x0.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
ohcireg.h
saf1761_otg.c Make a bunch of USB debug SYSCTLs tunable, so that their value(s) can 2015-01-05 15:04:17 +00:00
saf1761_otg.h Workaround for possible bug in the SAF1761 chip. Wait 125us before 2014-12-03 21:48:30 +00:00
saf1761_otg_boot.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
saf1761_otg_fdt.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
saf1761_otg_reg.h Use correct length mask for split transactions. The hardware would 2014-11-22 08:47:04 +00:00
uhci.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
uhci.h Fix compile warning about shifting signed negative constant. 2015-11-23 12:55:37 +00:00
uhci_pci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
uhcireg.h
usb_controller.c Improve the realtime properties of USB transfers for embedded systems 2015-08-14 12:57:53 +00:00
uss820dci.c Make a bunch of USB debug SYSCTLs tunable, so that their value(s) can 2015-01-05 15:04:17 +00:00
uss820dci.h - Implement fast interrupt handler to save CPU usage. 2014-08-05 06:33:59 +00:00
uss820dci_atmelarm.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
xhci.c Don't separate the status stage of the XHCI USB control transfers into 2016-08-22 19:32:50 +00:00
xhci.h Fix regression issue with XHCI on 32-bit ARMv7 Armada-38x. Make sure 2016-07-06 10:57:04 +00:00
xhci_mv.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
xhci_pci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
xhcireg.h Update the definition for number of scratch pages to match the latest 2016-06-22 09:03:55 +00:00