Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Stephen M. Rumble <rumble@netbsd.org>
List: source-changes
Date: 01/19/2008 18:20:39
Module Name:	src
Committed By:	rumble
Date:		Sat Jan 19 18:20:39 UTC 2008

Modified Files:
	src/sys/kern: kern_module.c

Log Message:
Ensure that if kobj_load fails we do not call kobj_close followed by
kobj_unload, as an unloaded kobj will already have been freed by an
implicit kobj_unload call in kobj_close. This fixes random panics when a
module fails to load.


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 src/sys/kern/kern_module.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.