nfe_stop() requires lock to be held when calling.
This commit is contained in:
parent
aadecb1ac8
commit
9565e1fac5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164646
@ -447,8 +447,10 @@ nfe_detach(device_t dev)
|
||||
nfe_set_macaddr(sc, eaddr);
|
||||
|
||||
if (device_is_attached(dev)) {
|
||||
NFE_LOCK(sc)
|
||||
nfe_stop(ifp, 1);
|
||||
ifp->if_flags &= ~IFF_UP;
|
||||
NFE_UNLOCK(sc)
|
||||
callout_drain(&sc->nfe_stat_ch);
|
||||
ether_ifdetach(ifp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user