Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/common Fix inverted pid/lid arguments in do...



details:   https://anonhg.NetBSD.org/src/rev/154d9621ffa1
branches:  trunk
changeset: 326260:154d9621ffa1
user:      njoly <njoly%NetBSD.org@localhost>
date:      Thu Jan 23 19:18:08 2014 +0000

description:
Fix inverted pid/lid arguments in do_sched_{get,set}param calls.

diffstat:

 sys/compat/linux/common/linux_sched.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 84a06d35dab7 -r 154d9621ffa1 sys/compat/linux/common/linux_sched.c
--- a/sys/compat/linux/common/linux_sched.c     Thu Jan 23 17:44:13 2014 +0000
+++ b/sys/compat/linux/common/linux_sched.c     Thu Jan 23 19:18:08 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_sched.c,v 1.65 2011/08/18 02:26:38 christos Exp $        */
+/*     $NetBSD: linux_sched.c,v 1.66 2014/01/23 19:18:08 njoly Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sched.c,v 1.65 2011/08/18 02:26:38 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sched.c,v 1.66 2014/01/23 19:18:08 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/mount.h>
@@ -418,7 +418,7 @@
                goto out;
 
        /* We need the current policy in Linux terms. */
-       error = do_sched_getparam(0, SCARG(uap, pid), &policy, NULL);
+       error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL);
        if (error)
                goto out;
        error = sched_native2linux(policy, NULL, &policy, NULL);
@@ -429,7 +429,7 @@
        if (error)
                goto out;
 
-       error = do_sched_setparam(0, SCARG(uap, pid), policy, &sp);
+       error = do_sched_setparam(SCARG(uap, pid), 0, policy, &sp);
        if (error)
                goto out;
 
@@ -453,7 +453,7 @@
                goto out;
        }
 
-       error = do_sched_getparam(0, SCARG(uap, pid), &policy, &sp);
+       error = do_sched_getparam(SCARG(uap, pid), 0, &policy, &sp);
        if (error)
                goto out;
        DPRINTF(("%s: native: policy %d, priority %d\n",
@@ -502,7 +502,7 @@
        DPRINTF(("%s: native: policy %d, priority %d\n",
            __func__, policy, sp.sched_priority));
 
-       error = do_sched_setparam(0, SCARG(uap, pid), policy, &sp);
+       error = do_sched_setparam(SCARG(uap, pid), 0, policy, &sp);
        if (error)
                goto out;
 
@@ -520,7 +520,7 @@
 
        *retval = -1;
 
-       error = do_sched_getparam(0, SCARG(uap, pid), &policy, NULL);
+       error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL);
        if (error)
                goto out;
 



Home | Main Index | Thread Index | Old Index