Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 12/30/2004 11:35:42
Module Name:	src
Committed By:	jdolecek
Date:		Thu Dec 30 11:35:42 UTC 2004

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

Log Message:
fix two issues regarding handling of ksyms (modload -s):
* only add the symbol table for the current module if the LKM_E_LOAD
  hook returns success; otherwise we overwrite the LKM_E_LOAD error,
  which may ultimately lead to (incorrectly) allowing the module load
* only delete the sumbol table for current module if we actually added
  the symbol table; avoids deleting symbol table of previously loaded
  module when the same module is loaded twice, when the second load
  fails with EEXIST

fixes PR kern/28803 by Jens Kessmeier


To generate a diff of this commit:
cvs rdiff -r1.78 -r1.79 src/sys/kern/kern_lkm.c

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