freebsd-dev/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_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
at91dci.c
at91dci.h
atmegadci_atmelarm.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
atmegadci.c
atmegadci.h
avr32dci.c
avr32dci.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_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_otgreg.h
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_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
ehci.c
ehci.h
ehcireg.h
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_atmelarm.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
musb_otg.c
musb_otg.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
ohci.c
ohci.h
ohcireg.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
saf1761_otg.c
saf1761_otg.h
uhci_pci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
uhci.c
uhci.h
uhcireg.h
usb_controller.c
uss820dci_atmelarm.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
uss820dci.c
uss820dci.h
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
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
xhcireg.h Update the definition for number of scratch pages to match the latest 2016-06-22 09:03:55 +00:00