d3bf5efc1f
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 |
||
---|---|---|
.. | ||
files.rt305x | ||
obio.c | ||
obiovar.h | ||
rt305x_dotg.c | ||
rt305x_ehci.c | ||
rt305x_gpio.c | ||
rt305x_gpio.h | ||
rt305x_gpiovar.h | ||
rt305x_ic.c | ||
rt305x_icvar.h | ||
rt305x_machdep.c | ||
rt305x_ohci.c | ||
rt305x_pci.c | ||
rt305x_pcireg.h | ||
rt305x_spi.c | ||
rt305x_sysctl.c | ||
rt305x_sysctlvar.h | ||
rt305xreg.h | ||
rt_swreg.h | ||
std.rt305x | ||
uart_bus_rt305x.c | ||
uart_cpu_rt305x.c | ||
uart_dev_rt305x.c | ||
uart_dev_rt305x.h |