]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r265232
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Oct 2014 15:21:20 +0000 (15:21 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Oct 2014 15:21:20 +0000 (15:21 +0000)
commit171ca02eebc5885eee1db30ae89457aa433977ad
treeae07387fed649b216cdf019ed5c4460fc10fa67a
parent147002cce2458fac982ace81482467240337043e
MFC r265232

Fix a panic caused by doing "ifconfig -am" while a lagg is being destroyed.
The thread that is destroying the lagg has already set sc->sc_psc=NULL when
the "ifconfig -am" thread gets to lacp_req().  It tries to dereference
sc->sc_psc and panics.  The solution is for lacp_req() to check the value of
sc->sc_psc.  If NULL, harmlessly return an lacp_opreq structure full of
zeros.  Full details in GNATS.

PR:   189003

git-svn-id: svn://svn.freebsd.org/base/stable/9@272705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/ieee8023ad_lacp.c