summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2004-03-22 18:34:37 +0000
committerwpaul <wpaul@FreeBSD.org>2004-03-22 18:34:37 +0000
commit531ac9bc5435907dc4b9658f7524bd5cec1d0016 (patch)
tree06547830da1878251cc87efda99d93e7c6661bfd
parent8f50df08c86e5d57fb42024324106e55849734d6 (diff)
downloadFreeBSD-src-531ac9bc5435907dc4b9658f7524bd5cec1d0016.zip
FreeBSD-src-531ac9bc5435907dc4b9658f7524bd5cec1d0016.tar.gz
I'm a dumbass: the test in the MOD_SHUTDOWN case in ndis_modevent()
that checks to see if any devices are still in the devlist was reversed.
-rw-r--r--sys/compat/ndis/kern_ndis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/ndis/kern_ndis.c b/sys/compat/ndis/kern_ndis.c
index fbb62b1..89cc5e6 100644
--- a/sys/compat/ndis/kern_ndis.c
+++ b/sys/compat/ndis/kern_ndis.c
@@ -150,7 +150,7 @@ ndis_modevent(module_t mod, int cmd, void *arg)
case MOD_SHUTDOWN:
/* stop kthreads */
ndis_destroy_kthreads();
- if (TAILQ_FIRST(&ndis_devhead) != NULL) {
+ if (TAILQ_FIRST(&ndis_devhead) == NULL) {
/* Shut down subsystems */
ndis_libfini();
ntoskrnl_libfini();
OpenPOWER on IntegriCloud