From: Rich Felker Date: Thu, 27 Jun 2013 02:02:23 +0000 (-0400) Subject: fix syscall argument bug in pthread_getschedparam X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=b17c75a4d539d7ec5b81cc7ce7ce6b065a87e7a6;hp=7c20a11801fd56cbadac5a6e88ddddf8656ac1bc fix syscall argument bug in pthread_getschedparam the address of the pointer to the sched param, rather than the pointer, was being passed to the kernel. --- diff --git a/src/thread/pthread_getschedparam.c b/src/thread/pthread_getschedparam.c index 7b6a95f1..3053c186 100644 --- a/src/thread/pthread_getschedparam.c +++ b/src/thread/pthread_getschedparam.c @@ -7,7 +7,7 @@ int pthread_getschedparam(pthread_t t, int *restrict policy, struct sched_param if (t->dead) { r = ESRCH; } else { - r = -__syscall(SYS_sched_getparam, t->tid, ¶m); + r = -__syscall(SYS_sched_getparam, t->tid, param); if (!r) { *policy = __syscall(SYS_sched_getscheduler, t->tid); }