freebsd-skq/sys/dev
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
..
aac
aacraid
acpi_support aibs / atk0110: add support for querying sensors via GGRP and GITM 2016-10-15 09:10:35 +00:00
acpica Merge ACPICA 20160930. 2016-10-04 20:27:15 +00:00
adb
adlink
advansys
ae
age
agp
aha
ahb
ahci Fix channel initialization in FBS mode. 2016-09-07 13:51:34 +00:00
aic
aic7xxx
alc Add a missing change in r304575. 2016-08-22 03:28:06 +00:00
ale
alpm
altera
amdpm
amdsbwd the rest of changes intended to be committed in r306290 2016-09-24 07:59:54 +00:00
amdsmb
amdtemp
amr
an
arcmsr
asmc
ata
ath [ath_hal] add a new regdomain flag - I think this means "yes, you can use this 2016-09-26 02:05:02 +00:00
atkbdc Assume all coreboot BIOSes have the need for these workarounds because 2016-10-17 04:07:12 +00:00
auxio
bce
beri
bfe
bge
bhnd Fix device delete child function. 2016-10-17 10:20:38 +00:00
bktr
bm
buslogic
bvm
bwi net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
bwn net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
bxe Revert commit 2016-09-30 18:08:16 +00:00
cadence
cardbus
cas
ce
cesa
cfe
cfi
ciss
cm
cmx
coretemp
cp
cpuctl
cpufreq Add generic device-tree cpufreq driver. 2016-09-06 20:43:26 +00:00
cs
ct
ctau
cx
cxgb With clang 3.9.0, compiling cxgb results in the following warning: 2016-09-03 19:01:11 +00:00
cxgbe cxgbe(4): Allow the interface MTU to be set as high as the actual 2016-10-13 19:40:21 +00:00
cy
cyapa
dc
dcons
de
digi
dpaa
dpms
dpt
drm
drm2 Fix a race in vm_page_busy_sleep(9). 2016-10-13 14:41:05 +00:00
dwc
e1000 e1000: Add support for Kaby Lake IDs 2016-08-15 11:24:30 +00:00
ed
efidev Do not try to create /dev/efi device node before devfs is initialized. 2016-10-16 06:07:43 +00:00
eisa
en
ep
esp
et
etherswitch
evdev Implement EVDEV_FLAG_MT_AUTOREL flag (autorelease touchpoints) 2016-10-08 17:59:53 +00:00
ex
exca
extres
fatm
fb Provide way for framebuffer driver to request mmap(2) mapping type 2016-10-01 17:43:02 +00:00
fdc
fdt Revert r306473. 2016-10-01 01:10:51 +00:00
fe
ffec
filemon Avoid taking PROC_LOCK in syscalls if not being traced. 2016-08-12 16:05:53 +00:00
firewire
flash
fxp
gem
glxiic
glxsb
gpio Add driver for GPIO controlled regulator. 2016-10-15 20:04:14 +00:00
gxemul
hatm
hifn
hme
hpt27xx
hptiop
hptmv
hptnr
hptrr
hwpmc hwpmc: remove sys/capability.h backwards compatibility 2016-09-20 12:56:03 +00:00
hyperv hyperv/vmbus: Add __FBSDID 2016-10-14 05:47:59 +00:00
ic
ichiic
ichsmb
ichwd
ida
if_ndis
iicbus convert iicsmb to use iicbus_transfer for all operations 2016-10-13 07:25:18 +00:00
iir
intpm amdsbwd, intpm: unify bits specific to AMD chipsets (FCHs, southbridges) 2016-09-22 21:34:35 +00:00
io
ioat ioat(4): Start poll timer when descriptors are released to HW 2016-09-11 20:15:41 +00:00
ipmi
ips
ipw
isci
iscsi Fix send/recv limit mixup. 2016-09-05 23:12:24 +00:00
iscsi_initiator iscsi_initiator: make logout_req::reason unsigned char 2016-08-30 19:20:26 +00:00
iser Make the iSCSI parameter negotiation more flexible. 2016-08-25 05:22:53 +00:00
isl
ismt
isp
ispfw
iwi
iwm net80211: convert all ieee80211_input_mimo*() consumers 2016-10-12 20:50:13 +00:00
iwn net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
ixgb
ixgbe
ixl Fix linker warnings (errors on gcc) that resulted from r304510. 2016-09-01 01:08:18 +00:00
jme
joy
kbd Use M_WAITOK in PIO_KEYMAP ioctl 2016-10-12 12:56:18 +00:00
kbdmux Fix keyboard polling "on/off" to support recursion. vt depends on 2016-08-30 12:36:14 +00:00
ksyms
le
led
lge
lmc lmc(4): fix the build without the bpf device 2016-10-01 22:21:10 +00:00
malo
mbox
mc146818
mca
md
mdio
mem
mfi Add missing array subscript. 2016-08-29 01:59:18 +00:00
mge
mii
mk48txx
mlx
mlx4 Move the ConnectX-3 and ConnectX-2 driver from sys/ofed into sys/dev/mlx4 2016-09-30 08:23:06 +00:00
mlx5 Set hardware stats flag to avoid double counting the number of incoming bytes. 2016-09-29 16:35:52 +00:00
mly
mmc
mn
mpr
mps
mpt
mrsas mrsas: update for sys/capability.h rename in r263232 2016-09-20 12:59:30 +00:00
mse
msk
mvs
mwl
mxge
my
nand
ncr
nctgpio
ncv
netfpga10g/nf10bmac
netmap add two missing files for the netmap import 2016-10-16 15:22:17 +00:00
nfe
nfsmb
nge
nmdm
nsp
ntb
null
nvd
nvme
nvram
nvram2env
nxge
oce Update oce to version 11.0.50.0 2016-09-22 22:51:11 +00:00
ofw Restrict where we need to define fdt_fixup_table to just PowerPC and 2016-09-23 14:11:23 +00:00
otus net80211: convert all ieee80211_input_mimo*() consumers 2016-10-12 20:50:13 +00:00
ow
patm
pbio
pccard
pccbb
pcf
pci pci: Clear the MEM/PORT_EN bit when updating PCI BAR 2016-09-27 06:00:10 +00:00
pcn
pdq
pms
powermac_nvram
ppbus With clang 3.9.0, compiling ppbus(4) results in the following warnings: 2016-09-03 13:48:44 +00:00
ppc
proto
psci
pst
pty
puc Fix device delete child function. 2016-10-17 10:20:38 +00:00
qlxgb
qlxgbe Add support for adding up to 64 Multicast addresses with a single 2016-10-06 21:39:04 +00:00
qlxge
quicc
ral net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
random
rc
rccgpio
re Add support for the TP-Link TG-3468 v2. 2016-09-21 14:15:15 +00:00
rl Add support for the TP-Link TG-3468 v2. 2016-09-21 14:15:15 +00:00
rndtest
rp
rt
rtwn rtwn: fix firmware readiness check in rtwn_load_firmware(). 2016-09-06 11:08:32 +00:00
safe
sbni
scc
sdhci
sec
sf
sfxge sfxge(4): update external port mapping for Medford 2016-10-11 13:08:48 +00:00
sge
siba
siis
sio
sis
sk
smbus smbus: allow child devices to be added via hints 2016-10-12 06:58:01 +00:00
smc
sn
snc
snp
sound
speaker
spibus
ste
stg
stge
streams
sym
syscons The log message for the previous commit didn't mention the most the 2016-09-01 19:18:26 +00:00
tdfx
terasic
ti
tl
tpm
trm
tsec Add support for NXP/Freescale etsec2 ethernet controller 2016-08-30 01:58:49 +00:00
twa
twe
tws
tx
txp
uart Check all compatible strings on uart devices in powerpc 2016-08-28 21:31:21 +00:00
ubsec
urtwn net80211: ieee80211_ratectl*: switch to reusable KPI 2016-10-02 20:35:55 +00:00
usb Fix device delete child function. 2016-10-17 10:20:38 +00:00
utopia
vge
viapm
viawd
videomode
virtio Create aliases for named virtio-console ports. 2016-09-17 16:03:33 +00:00
vkbd
vmware/vmxnet3
vnic INTRNG: Rework handling with resources. Partially revert r301453. 2016-08-19 10:52:39 +00:00
vr
vt vt: fix old keyboard release in CONS_SETKBD 2016-08-18 16:22:40 +00:00
vte
vx
vxge
watchdog
wb
wbwd
wi
wpi wpi: restore frame header before submitting an mbuf to 2016-10-08 20:41:08 +00:00
wtap
xe
xen
xilinx
xl