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

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