mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-10 14:02:43 +00:00
Correct KASSERT()s that check for initialization of mutexes in ndis_detach(),
which are different now that I'm not using mutex pools anymore. Noticed by: des
This commit is contained in:
parent
4db0943252
commit
9ad2cfc795
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128585
@ -687,9 +687,9 @@ ndis_detach(dev)
|
||||
struct ifnet *ifp;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
KASSERT(mtx_initialized(sc->ndis_mtx),
|
||||
KASSERT(mtx_initialized(&sc->ndis_mtx),
|
||||
("ndis mutex not initialized"));
|
||||
KASSERT(mtx_initialized(sc->ndis_intrmtx),
|
||||
KASSERT(mtx_initialized(&sc->ndis_intrmtx),
|
||||
("ndis interrupt mutex not initialized"));
|
||||
NDIS_LOCK(sc);
|
||||
ifp = &sc->arpcom.ac_if;
|
||||
@ -1032,6 +1032,8 @@ ndis_ticktask(xsc)
|
||||
ndis_media_state linkstate;
|
||||
int error, len;
|
||||
|
||||
mtx_unlock(&Giant);
|
||||
|
||||
sc = xsc;
|
||||
|
||||
hangfunc = sc->ndis_chars.nmc_checkhang_func;
|
||||
@ -1066,6 +1068,8 @@ ndis_ticktask(xsc)
|
||||
|
||||
NDIS_UNLOCK(sc);
|
||||
|
||||
mtx_lock(&Giant);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user