Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix reversed test.



details:   https://anonhg.NetBSD.org/src/rev/3fcc2394bf09
branches:  trunk
changeset: 346731:3fcc2394bf09
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 30 15:38:17 2016 +0000

description:
Fix reversed test.

diffstat:

 sys/kern/sys_sched.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7024e918ad47 -r 3fcc2394bf09 sys/kern/sys_sched.c
--- a/sys/kern/sys_sched.c      Sat Jul 30 12:33:27 2016 +0000
+++ b/sys/kern/sys_sched.c      Sat Jul 30 15:38:17 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_sched.c,v 1.45 2016/07/07 06:55:43 msaitoh Exp $   */
+/*     $NetBSD: sys_sched.c,v 1.46 2016/07/30 15:38:17 christos Exp $  */
 
 /*
  * Copyright (c) 2008, 2011 Mindaugas Rasiukevicius <rmind at NetBSD org>
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_sched.c,v 1.45 2016/07/07 06:55:43 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_sched.c,v 1.46 2016/07/30 15:38:17 christos Exp $");
 
 #include <sys/param.h>
 
@@ -570,7 +570,7 @@
                }
        } else if (pri < 0) {
                /* Just retrieve the current value, for debugging */
-               if (l->l_protectprio != -1)
+               if (l->l_protectprio == -1)
                        error = ENOENT;
                else
                        *retval = l->l_protectprio - PRI_USER_RT;



Home | Main Index | Thread Index | Old Index