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
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
atmegadci.h
atmegadci_atmelarm.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
avr32dci.c
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
dwc_otg_fdt.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
dwc_otg_fdt.h
dwc_otg_hisi.c
dwc_otgreg.h
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
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
saf1761_otg.h
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
uhci.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
uhci.h
uhci_pci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
uhcireg.h
usb_controller.c
uss820dci.c
uss820dci.h
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