freebsd-skq/sys/arm/cavium/cns11xx
hselasky 0c88dabe9d 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
..
cfi_bus_econa.c
econa_machdep.c Spaces->tab in comment. 2016-05-23 20:13:17 +00:00
econa_reg.h
econa_var.h
econa.c Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
ehci_ebus.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
files.econa Move more bus_space_* files to be built by files.arm. This leaves the 2015-11-21 15:30:08 +00:00
if_ece.c sys/arm: Minor spelling fixes. 2016-05-04 15:48:59 +00:00
if_ecereg.h
if_ecevar.h
ohci_ec.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
std.econa Remove the arm KERNPHYSADDR option as it is no longer used. The make 2015-12-22 09:08:21 +00:00
timer.c
uart_bus_ec.c
uart_cpu_ec.c