opnsense-src/sys/mips/rmi
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
..
dev Consistently use device_t 2016-08-09 19:32:06 +00:00
board.c I2C drivers for XLR/XLS processors. 2010-12-12 06:00:26 +00:00
board.h I2C drivers for XLR/XLS processors. 2010-12-12 06:00:26 +00:00
bus_space_rmi.c Cleanups for sys/mips/rmi/bus_space_rmi.c 2010-02-20 16:32:33 +00:00
bus_space_rmi_pci.c Fix another fo-pa of mine... duplicate patches should 2010-02-21 17:27:20 +00:00
files.xlr Remove rge driver from Broadcom XLR 2015-09-04 19:57:28 +00:00
fmn.c As <machine/param.h> is included from <sys/param.h>, there is no need 2016-02-22 09:04:36 +00:00
interrupt.h Clean up header files in RMI platform code (sys/mips/rmi), and remove 2010-08-30 13:05:21 +00:00
intr_machdep.c Updates for the RMI MIPS platform code 2010-09-01 17:35:31 +00:00
iodi.c Use uintmax_t (typedef'd to rman_res_t type) for rman ranges. 2016-03-18 01:28:41 +00:00
iomap.h Clean up header files in RMI platform code (sys/mips/rmi), and remove 2010-08-30 13:05:21 +00:00
Makefile.msgring
mpwait.S Adds the file I forgot to add... that handles 2010-05-18 04:08:58 +00:00
msgring.c White space changes 2009-10-29 21:14:10 +00:00
msgring.cfg
msgring.h Update message ring handling code for XLR/XLS 2010-10-03 04:33:58 +00:00
msgring_xls.c White space changes 2009-10-29 21:14:10 +00:00
msgring_xls.cfg Clean some 'svn:executable' properties in the tree. 2013-01-26 22:08:21 +00:00
pcibus.h Changes for pci and pci-e support 2010-02-20 17:19:16 +00:00
pic.h Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
rmi_boot_info.h Clean up header files in RMI platform code (sys/mips/rmi), and remove 2010-08-30 13:05:21 +00:00
rmi_mips_exts.h Fix asm for XKPHYS read for o32, constriants needed for input registers 2010-10-05 05:49:38 +00:00
rootfs_list.txt Renove faith(4) and faithd(8) from base. It looks like industry 2014-11-09 21:33:01 +00:00
std.xlr Move 'cpu CPU_RMI' to std.xlr, this is common for all XLR cpus. 2011-01-20 12:45:29 +00:00
tick.c Panics about how things can't be attached should probably happen in the 2013-10-29 20:38:58 +00:00
uart_bus_xlr_iodi.c Place proper svn:keywords tag on all these files. They were created 2010-01-12 21:17:36 +00:00
uart_cpu_mips_xlr.c ok we now get so that the uart init's and we can print. We 2009-11-05 18:14:25 +00:00
xlr_csum_nocopy.S
xlr_i2c.c Make Broadcom XLR use shared ds1374 RTC driver. 2015-07-29 15:32:59 +00:00
xlr_machdep.c Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00
xlr_pci.c mips: for pointers replace 0 with NULL. 2016-04-15 14:26:24 +00:00
xlr_pcmcia.c Initial code for XLR CompactFlash driver. 2010-08-28 07:58:10 +00:00
xls_ehci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00