Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern return EPERM like the other failures.
details: https://anonhg.NetBSD.org/src/rev/c936bba3b916
branches: trunk
changeset: 823074:c936bba3b916
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 11 14:37:07 2017 +0000
description:
return EPERM like the other failures.
diffstat:
sys/kern/kern_module.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r fc36320bf28c -r c936bba3b916 sys/kern/kern_module.c
--- a/sys/kern/kern_module.c Tue Apr 11 14:32:43 2017 +0000
+++ b/sys/kern/kern_module.c Tue Apr 11 14:37:07 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_module.c,v 1.121 2017/04/11 14:31:55 christos Exp $ */
+/* $NetBSD: kern_module.c,v 1.122 2017/04/11 14:37:07 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.121 2017/04/11 14:31:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.122 2017/04/11 14:37:07 christos Exp $");
#define _MODULE_INTERNAL
@@ -614,7 +614,7 @@
printf("%s: trying to load `%s' before root is mounted\n",
__func__, filename);
#endif
- return;
+ return EPERM;
}
kernconfig_lock();
Home |
Main Index |
Thread Index |
Old Index