Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys/kern Put the checks back in the original order...



details:   https://anonhg.NetBSD.org/src/rev/ad979fe8fe03
branches:  pgoyette-compat
changeset: 321186:ad979fe8fe03
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Jul 09 08:45:41 2018 +0000

description:
Put the checks back in the original order, and remove extra ')'

Thanks to soda for finding the real error.

diffstat:

 sys/kern/kern_module.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 384b0343be30 -r ad979fe8fe03 sys/kern/kern_module.c
--- a/sys/kern/kern_module.c    Mon Jul 09 08:26:29 2018 +0000
+++ b/sys/kern/kern_module.c    Mon Jul 09 08:45:41 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_module.c,v 1.130.2.12 2018/07/09 08:26:29 pgoyette Exp $  */
+/*     $NetBSD: kern_module.c,v 1.130.2.13 2018/07/09 08:45:41 pgoyette 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.130.2.12 2018/07/09 08:26:29 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.130.2.13 2018/07/09 08:45:41 pgoyette Exp $");
 
 #define _MODULE_INTERNAL
 
@@ -1039,8 +1039,8 @@
                }
        }
        if (mod) {
-               if (!ISSET(flags, MODCTL_LOAD_FORCE) &&
-                   ISSET(mod->mod_flags, MODFLG_MUST_FORCE)) {
+               if (ISSET(mod->mod_flags, MODFLG_MUST_FORCE) &&
+                   !ISSET(flags, MODCTL_LOAD_FORCE)) {
                        if (!autoload) {
                                module_error("use -f to reinstate "
                                    "builtin module `%s'", name);



Home | Main Index | Thread Index | Old Index