freebsd-nq/sys/arm/xilinx
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.zynq7 Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
std.zynq7 Split CPU_CORTEXA into CPU_CORTEXA8, for the Cortex-A8, and CPU_CORTEXA_MP, 2016-10-04 12:25:44 +00:00
uart_dev_cdnc.c
zy7_devcfg.c
zy7_ehci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
zy7_gpio.c
zy7_l2cache.c
zy7_machdep.c Restrict where we need to define fdt_fixup_table to just PowerPC and 2016-09-23 14:11:23 +00:00
zy7_mp.c ARM: SEV/WFE instructions are implemented starting from ARMv6K, 2016-10-06 13:18:18 +00:00
zy7_reg.h
zy7_slcr.c sys/arm: Minor spelling fixes. 2016-05-04 15:48:59 +00:00
zy7_slcr.h