0c88dabe9d
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 |
||
---|---|---|
.. | ||
cryptocteon | ||
octe | ||
usb | ||
asm_octeon.S | ||
ciu.c | ||
cvmx_config.h | ||
files.octeon1 | ||
if_octm.c | ||
obio.c | ||
obiovar.h | ||
octeon_cop2.h | ||
octeon_cop2.S | ||
octeon_ds1337.c | ||
octeon_ebt3000_cf.c | ||
octeon_gpio.c | ||
octeon_gpiovar.h | ||
octeon_irq.h | ||
octeon_machdep.c | ||
octeon_mp.c | ||
octeon_nmi.S | ||
octeon_pci_console.c | ||
octeon_pcmap_regs.h | ||
octeon_pmc.c | ||
octeon_rnd.c | ||
octeon_rtc.c | ||
octeon_wdog.c | ||
octopci_bus_space.c | ||
octopci.c | ||
octopcireg.h | ||
octopcivar.h | ||
std.octeon1 | ||
uart_bus_octeonusart.c | ||
uart_cpu_octeonusart.c | ||
uart_dev_oct16550.c |