patch-pre2.0.6 linux/kernel/module.c
Next file: linux/net/core/net_alias.c
Previous file: linux/include/net/sock.h
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Fri May 17 18:34:06 1996
-  Orig file: 
pre2.0.5/linux/kernel/module.c
-  Orig date: 
Fri May 17 15:32:19 1996
diff -u --recursive --new-file pre2.0.5/linux/kernel/module.c linux/kernel/module.c
@@ -293,7 +293,7 @@
 	else {
 		for (mp = module_list; mp != &kernel_module; mp = mp->next) {
 			if ((mp->ref == NULL) && (mp->state == MOD_RUNNING) &&
-			    ((GET_USE_COUNT(mp) & ~(MOD_AUTOCLEAN | MOD_VISITED)) == 0)) {
+			    ((GET_USE_COUNT(mp) & ~MOD_VISITED) == MOD_AUTOCLEAN)) {
 			    	if ((GET_USE_COUNT(mp) & MOD_VISITED)) {
 					/* Don't reap until one "cycle" after last _use_ */
 			   		GET_USE_COUNT(mp) &= ~MOD_VISITED;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this