diff options
author | wpaul <wpaul@FreeBSD.org> | 2005-05-20 02:35:43 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2005-05-20 02:35:43 +0000 |
commit | cb815ff30fbde65924063d785b490037a83852ce (patch) | |
tree | fdf176a5e3862096176cb742b0139bbe99fcde3a /sys/compat | |
parent | d208a524fdd6f23e68b44559323dfc621faa8646 (diff) | |
download | FreeBSD-src-cb815ff30fbde65924063d785b490037a83852ce.zip FreeBSD-src-cb815ff30fbde65924063d785b490037a83852ce.tar.gz |
In ndis_halt_nic(), invalidate the miniportadapterctx early to try and
prevent anything from making calls to the NIC while it's being shut down.
This is yet another attempt to stop things like mdnsd from trying to
poke at the card while it's not properly initialized and panicking
the system.
Also, remove unneeded debug message from if_ndis.c.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/ndis/kern_ndis.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/compat/ndis/kern_ndis.c b/sys/compat/ndis/kern_ndis.c index 6e6fd60..fec7650 100644 --- a/sys/compat/ndis/kern_ndis.c +++ b/sys/compat/ndis/kern_ndis.c @@ -1122,6 +1122,7 @@ ndis_halt_nic(arg) return(EIO); } + sc->ndis_block->nmb_miniportadapterctx = NULL; sc->ndis_block->nmb_devicectx = NULL; /* @@ -1135,10 +1136,6 @@ ndis_halt_nic(arg) MSCALL1(haltfunc, adapter); - NDIS_LOCK(sc); - sc->ndis_block->nmb_miniportadapterctx = NULL; - NDIS_UNLOCK(sc); - return(0); } |