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.
This commit is contained in:
Bill Paul 2004-03-22 18:34:37 +00:00
parent 3ccc038a0b
commit c5d019ec55

View File

@ -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();