Module Name:    src
Committed By:   jakllsch
Date:           Sat Jun 23 14:22:30 UTC 2018

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

Log Message:
add a kobj_error() to a recently added error case


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/kern/subr_kobj.c

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

Modified files:

Index: src/sys/kern/subr_kobj.c
diff -u src/sys/kern/subr_kobj.c:1.65 src/sys/kern/subr_kobj.c:1.66
--- src/sys/kern/subr_kobj.c:1.65	Sat Nov  4 22:17:55 2017
+++ src/sys/kern/subr_kobj.c	Sat Jun 23 14:22:30 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_kobj.c,v 1.65 2017/11/04 22:17:55 christos Exp $	*/
+/*	$NetBSD: subr_kobj.c,v 1.66 2018/06/23 14:22:30 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_kobj.c,v 1.65 2017/11/04 22:17:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_kobj.c,v 1.66 2018/06/23 14:22:30 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
@@ -889,6 +889,7 @@ kobj_sym_lookup(kobj_t ko, uintptr_t sym
 		 * Don't even try to lookup the symbol if the index is
 		 * bogus.
 		 */
+		kobj_error(ko, "symbol index out of range");
 		return EINVAL;
 	}
 

Reply via email to