freebsd-skq/sys
dumbbell fff41eb460 iicbus: Use device_delete_children() instead of explicit child removal
If the bus is detached and deleted by a call to device_delete_child() or
device_delete_children() on a device higher in the tree, I²C children
were already detached and deleted. So the device_t pointer stored in sc
points to freed memory: we must not try to delete it again.

By using device_delete_children(), we let subr_bus.c figure out if there
are children to take care of.

While here, make sure iicbus_detach() and iicoc_detach() call
device_delete_children() too, to be safe.

Reviewed by:	jhb, imp
Approved by:	jhb, imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D3926
2015-10-20 19:52:59 +00:00
..
amd64 Remove compatibility shims for legacy ATA device names. 2015-10-11 13:01:51 +00:00
arm Uncomment some rather important code that was commented out for benchmarking. 2015-10-20 15:15:30 +00:00
arm64 Use 4 levels of page tables when enabling the MMU. This will allow us to 2015-10-19 13:20:23 +00:00
boot Change gptldr from relocating 0xfff1 bytes of boot2 to relocating 0x20000 2015-10-08 15:38:34 +00:00
bsm
cam Make delete method set via kern.cam.da.X.delete_method persistent. 2015-10-11 18:26:06 +00:00
cddl MFV r289561: 6328 Fix cstyle errors in zfs codebase 2015-10-19 08:25:37 +00:00
compat Properly format pointer size independent CloudABI system calls. 2015-10-08 05:27:45 +00:00
conf Introduce driver for Cavium's ThunderX MDIO 2015-10-18 22:10:08 +00:00
contrib Really fix ipfilter bug 3600459. 2015-10-18 03:09:03 +00:00
crypto const'ify an arg that we don't update... 2015-07-29 23:37:15 +00:00
ddb Make kstack_pages a tunable on arm, x86, and powepc. On i386, the 2015-08-10 17:18:21 +00:00
dev iicbus: Use device_delete_children() instead of explicit child removal 2015-10-20 19:52:59 +00:00
fs Ensure that when a blockable open of fifo returns success, a valid 2015-09-20 21:18:33 +00:00
gdb
geom Remove compatibility shims for legacy ATA device names. 2015-10-11 13:01:51 +00:00
gnu Fixing a memory leak on module unloading. 2015-09-11 22:43:35 +00:00
i386 Remove compatibility shims for legacy ATA device names. 2015-10-11 13:01:51 +00:00
isa
kern Switch pl_child_pid from int to pid_t. 2015-10-20 17:58:21 +00:00
kgssapi
libkern Add the __aeabi_memclr8 symbol, clang 3.7 uses this. 2015-09-21 18:35:32 +00:00
mips Disable SWAPPING as we don't do it on this board. 2015-10-20 19:32:26 +00:00
modules Update firmware images for Qlogic 24xx/25xx from 5.5.0 to 7.3.0. 2015-10-20 12:27:59 +00:00
net Remove several compat functions from pre-fib era. 2015-10-17 17:26:44 +00:00
net80211 net80211: move ieee80211_free_node() call on error from ic_raw_xmit() to ieee80211_raw_output(). 2015-10-12 04:55:20 +00:00
netgraph Add support for PPP-Max-Payload PPPoE tag (RFC4638). 2015-09-11 09:15:27 +00:00
netinet Use __func__ instead of __FUNCTION__. 2015-10-19 11:17:54 +00:00
netinet6 Invoke lle_event for new entry iff it has lladdr set. 2015-10-04 19:10:27 +00:00
netipsec Take extra reference to security policy before calling crypto_dispatch(). 2015-09-30 08:16:33 +00:00
netnatm
netpfil pf: Fix TSO issues 2015-10-14 16:21:41 +00:00
netsmb
nfs Wait up to 10 seconds for late-initializing network interfaces to arrive. 2015-09-26 13:55:55 +00:00
nfsclient
nfsserver
nlm
ofed Move location of RCS keyword according to style. 2015-10-20 19:08:26 +00:00
opencrypto Make IPsec work with AES-GCM and AES-ICM (aka CTR) in OCF... IPsec 2015-08-04 17:47:11 +00:00
pc98 Remove compatibility shims for legacy ATA device names. 2015-10-11 13:01:51 +00:00
powerpc Use IIC_EBUSBSY and IIC_BUSERR status values consistantly across all drivers. 2015-10-09 22:49:50 +00:00
rpc Increase group limit for kerberized NFSv4 2015-09-26 16:30:16 +00:00
security fd: make 'rights' a manadatory argument to fget* functions 2015-07-05 19:05:16 +00:00
sparc64 Add support for weak symbols to the kernel linkers. It means that 2015-09-20 01:27:59 +00:00
sys Switch pl_child_pid from int to pid_t. 2015-10-20 17:58:21 +00:00
teken Sync HPA and VPA implementations with CUP. 2015-08-24 07:49:27 +00:00
tools Rename the /usr/share/doc/legal files to driver.LICENSE to work around 2015-10-16 00:38:05 +00:00
ufs Do not relocate extents to make them contiguous if the underlying drive can do 2015-10-16 03:06:02 +00:00
vm Only marker is guaranteed to be present on the queue after the relock 2015-10-18 09:33:28 +00:00
x86 Don't page-align the physical address when calling PHYS_TO_VM_PAGE(). 2015-10-17 14:58:55 +00:00
xdr
xen xen/console: Introduce a new console driver for Xen guest 2015-10-08 16:39:43 +00:00
Makefile