Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src
YAMAMOTO Takashi wrote:
int
linux_sys_sched_getparam(struct lwp *l, const struct
linux_sys_sched_getparam_args *uap, register_t *retval)
error = sched_native2linux(0, &sp, NULL, &lp);
'0' seems wrong.
Attached diff okay?
-e.
Index: linux_sched.c
===================================================================
RCS file: /usr/cvs/src/sys/compat/linux/common/linux_sched.c,v
retrieving revision 1.49
diff -u -p -r1.49 linux_sched.c
--- linux_sched.c 28 Feb 2008 16:09:18 -0000 1.49
+++ linux_sched.c 29 Feb 2008 12:37:04 -0000
@@ -305,18 +305,18 @@ linux_sys_sched_getparam(struct lwp *l,
} */
struct linux_sched_param lp;
struct sched_param sp;
- int error;
+ int error, policy;
if (SCARG(uap, pid) < 0 || SCARG(uap, sp) == NULL) {
error = EINVAL;
goto out;
}
- error = do_sched_getparam(SCARG(uap, pid), 0, NULL, &sp);
+ error = do_sched_getparam(SCARG(uap, pid), 0, &policy, &sp);
if (error)
goto out;
- error = sched_native2linux(0, &sp, NULL, &lp);
+ error = sched_native2linux(policy, &sp, NULL, &lp);
if (error)
goto out;
Home |
Main Index |
Thread Index |
Old Index