freebsd-skq/sys
Luiz Otavio O Souza 1210d2685f Fix cpsw_detach() to not panic when called from cpsw_attach().
For an unkown reason (at moment), sometimes if_cpsw cannot read from PHY
and fails to attach calling cpsw_detach() which end up in a panic.

Fix it by doing the proper check before detach the miibus and also fix the
leak of few variables.

And to actually make it work, ether_ifattach() has to be moved to the end
of cpsw_attach() to avoid a race where calling ether_ifdetach() before
domain_init() (which will only run later on) would make it crash at
INP_INFO_RLOCK() on in_pcbpurgeif0().

Tested on:	BBB (am335x)
MFC after:	1 week
2014-10-24 21:08:02 +00:00
..
amd64 Add COMPAT_FREEBSD9 and COMPAT_FREEBSD10 options to wrap code that 2014-10-24 19:58:24 +00:00
arm Fix cpsw_detach() to not panic when called from cpsw_attach(). 2014-10-24 21:08:02 +00:00
boot Provide a character device allowing us to access BERI memory regions. 2014-10-22 11:30:03 +00:00
bsm
cam Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
cddl Whitespace 2014-10-24 03:34:21 +00:00
compat Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
conf Add COMPAT_FREEBSD9 and COMPAT_FREEBSD10 options to wrap code that 2014-10-24 19:58:24 +00:00
contrib Update the OFED Linux compatibility layer and 2014-10-15 13:40:29 +00:00
crypto Put the aesni_cipher_setup() and aesni_cipher_process() functions into 2014-06-24 06:55:49 +00:00
ddb ddb: ANSI-fy function declarations. 2014-10-12 18:01:52 +00:00
dev HPET: avoid handling the multiple file-descriptor case. 2014-10-24 19:58:00 +00:00
fs Clip the settings for the NFS rsize, wsize mount options 2014-10-22 22:27:51 +00:00
gdb Add support for gdb's memory searching capabilities to our in-kernel gdb 2014-09-05 16:40:47 +00:00
geom Populate the GELI passphrase cache with the kern.geom.eli.passphrase 2014-10-22 23:41:15 +00:00
gnu reiserfs: Use signed i_nlink 2014-09-25 19:10:32 +00:00
i386 Add COMPAT_FREEBSD9 and COMPAT_FREEBSD10 options to wrap code that 2014-10-24 19:58:24 +00:00
isa
kern The current POSIX semaphore implementation stores the _has_waiters flag 2014-10-24 20:02:44 +00:00
kgssapi
libkern Add a complete implementation of MurmurHash3. Tweak both implementations 2014-10-18 22:15:11 +00:00
mips Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
modules Add VirtIO console driver 2014-10-23 04:47:32 +00:00
net Remove redundant check and m_pullup() call. 2014-10-24 13:34:22 +00:00
net80211 Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
netgraph Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
netinet Remove redundant check and m_pullup() call. 2014-10-24 13:34:22 +00:00
netinet6 Remove redundant check and m_pullup() call. 2014-10-24 13:34:22 +00:00
netipsec Use a static callout to drive key_timehandler() instead of timeout(). 2014-10-23 20:43:16 +00:00
netnatm
netpfil Bump default dynamic limit to 16k entries. 2014-10-24 13:57:15 +00:00
netsmb
nfs Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
nfsclient Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
nfsserver Change NFS readdir() to only ignore cookies preceding the given offset for 2014-07-01 20:00:35 +00:00
nlm
ofed Update the network interface baudrate integer according to the actual 2014-10-24 16:39:01 +00:00
opencrypto Fix build for kernels without COMPAT_FREEBSD32. 2014-09-22 17:32:27 +00:00
pc98 Add COMPAT_FREEBSD9 and COMPAT_FREEBSD10 options to wrap code that 2014-10-24 19:58:24 +00:00
powerpc Add COMPAT_FREEBSD9 and COMPAT_FREEBSD10 options to wrap code that 2014-10-24 19:58:24 +00:00
rpc Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
security Replace dev_clone with cdevpriv(9) KPI in audit_pipe code. 2014-08-20 16:04:30 +00:00
sparc64 Add COMPAT_FREEBSD9 and COMPAT_FREEBSD10 options to wrap code that 2014-10-24 19:58:24 +00:00
sys The current POSIX semaphore implementation stores the _has_waiters flag 2014-10-24 20:02:44 +00:00
teken
tools Allow the make_dtb script to work outside of a "make buildkernel" context 2014-08-30 22:39:15 +00:00
ufs Provide vfs suspension support only for filesystems which need it, take 2014-10-20 18:00:50 +00:00
vm Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
x86 xen: implement the privcmd user-space device 2014-10-22 17:07:20 +00:00
xdr
xen xen: implement the privcmd user-space device 2014-10-22 17:07:20 +00:00
Makefile Remove "pci" from CSCOPEDIRS. 2014-09-23 06:32:19 +00:00