patch-1.3.93 linux/kernel/module.c
Next file: linux/mm/filemap.c
Previous file: linux/init/main.c
Back to the patch index
Back to the overall index
-  Lines: 11
 -  Date:
Sun Apr 21 11:26:08 1996
 -  Orig file: 
v1.3.92/linux/kernel/module.c
 -  Orig date: 
Fri Apr 12 15:52:09 1996
 
diff -u --recursive --new-file v1.3.92/linux/kernel/module.c linux/kernel/module.c
@@ -304,9 +304,9 @@
 				GET_USE_COUNT(mp) &= ~MOD_AUTOCLEAN;
 				(*mp->cleanup)();
 				mp->state = MOD_DELETED;
-				free_modules();
 			}
 		}
+		free_modules();
 	}
 	return 0;
 }
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