Author: ae
Date: Wed Mar 28 06:49:04 2012
New Revision: 233595
URL: http://svn.freebsd.org/changeset/base/233595
Log:
MFC r233276:
Acquire modules lock before call module_getname() in the KLD_DEBUG case.
Modified:
stable/9/sys/kern/kern_linker.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/kern/kern_linker.c
==============================================================================
--- stable/9/sys/kern/kern_linker.c Wed Mar 28 05:37:20 2012
(r233594)
+++ stable/9/sys/kern/kern_linker.c Wed Mar 28 06:49:04 2012
(r233595)
@@ -636,8 +636,12 @@ linker_file_unload(linker_file_t file, i
* Give the module a chance to veto the unload.
*/
if ((error = module_unload(mod)) != 0) {
+#ifdef KLD_DEBUG
+ MOD_SLOCK;
KLD_DPF(FILE, ("linker_file_unload: module %s"
" failed unload\n", module_getname(mod)));
+ MOD_SUNLOCK;
+#endif
return (error);
}
MOD_XLOCK;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"