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/3f31ddcb876a
branches:  pgoyette-compat
changeset: 320479:3f31ddcb876a
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 e57814dda01e -r 3f31ddcb876a 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