Module Name: src Committed By: christos Date: Tue Apr 11 14:37:07 UTC 2017
Modified Files: src/sys/kern: kern_module.c Log Message: return EPERM like the other failures. To generate a diff of this commit: cvs rdiff -u -r1.121 -r1.122 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.
Modified files: Index: src/sys/kern/kern_module.c diff -u src/sys/kern/kern_module.c:1.121 src/sys/kern/kern_module.c:1.122 --- src/sys/kern/kern_module.c:1.121 Tue Apr 11 10:31:55 2017 +++ src/sys/kern/kern_module.c Tue Apr 11 10:37:07 2017 @@ -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 @@ module_autoload(const char *filename, mo printf("%s: trying to load `%s' before root is mounted\n", __func__, filename); #endif - return; + return EPERM; } kernconfig_lock();