freebsd-skq/sys/mips/rt305x
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
..
files.rt305x [rt305x] Add initial RT5350 and MT7620 glue. 2015-12-24 18:40:10 +00:00
obio.c Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
obiovar.h
rt305x_dotg.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
rt305x_ehci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
rt305x_gpio.c mips: for pointers replace 0 with NULL. 2016-04-15 14:26:24 +00:00
rt305x_gpio.h
rt305x_gpiovar.h
rt305x_ic.c
rt305x_icvar.h
rt305x_machdep.c Second argument of the mips_timer_init_params() is boolean, so 2016-03-09 18:38:03 +00:00
rt305x_ohci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
rt305x_pci.c As <machine/pmap.h> is included from <vm/pmap.h>, there is no need to 2016-02-22 09:02:20 +00:00
rt305x_pcireg.h [rt305x] add PCI bus / resource allocation code for the MT7620. 2015-12-24 18:33:08 +00:00
rt305x_spi.c [MT7620] add SPI device support. 2015-12-24 18:34:46 +00:00
rt305x_sysctl.c [rt305x] Add initial RT5350 and MT7620 glue. 2015-12-24 18:40:10 +00:00
rt305x_sysctlvar.h
rt305xreg.h [rt305x] add register space definitions for later generation chips. 2015-12-24 18:31:55 +00:00
rt_swreg.h
std.rt305x Use MIPS24K now. 2016-02-02 16:25:53 +00:00
uart_bus_rt305x.c [rt305x] Add initial RT5350 and MT7620 glue. 2015-12-24 18:40:10 +00:00
uart_cpu_rt305x.c [rt305x] Add initial RT5350 and MT7620 glue. 2015-12-24 18:40:10 +00:00
uart_dev_rt305x.c
uart_dev_rt305x.h