Module Name: src
Committed By: christos
Date: Sat Jul 30 15:38:17 UTC 2016
Modified Files:
src/sys/kern: sys_sched.c
Log Message:
Fix reversed test.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/kern/sys_sched.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/sys_sched.c
diff -u src/sys/kern/sys_sched.c:1.45 src/sys/kern/sys_sched.c:1.46
--- src/sys/kern/sys_sched.c:1.45 Thu Jul 7 02:55:43 2016
+++ src/sys/kern/sys_sched.c Sat Jul 30 11:38:17 2016
@@ -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 @@ sys__sched_protect(struct lwp *l,
}
} 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;