Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern add a kobj_error() to a recently added error case



details:   https://anonhg.NetBSD.org/src/rev/d0a1a8182fa3
branches:  trunk
changeset: 320126:d0a1a8182fa3
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sat Jun 23 14:22:30 2018 +0000

description:
add a kobj_error() to a recently added error case

diffstat:

 sys/kern/subr_kobj.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r dbad0a1a4676 -r d0a1a8182fa3 sys/kern/subr_kobj.c
--- a/sys/kern/subr_kobj.c      Sat Jun 23 14:15:57 2018 +0000
+++ b/sys/kern/subr_kobj.c      Sat Jun 23 14:22:30 2018 +0000
@@ -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 @@
                 * Don't even try to lookup the symbol if the index is
                 * bogus.
                 */
+               kobj_error(ko, "symbol index out of range");
                return EINVAL;
        }
 



Home | Main Index | Thread Index | Old Index