From b17c75a4d539d7ec5b81cc7ce7ce6b065a87e7a6 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 26 Jun 2013 22:02:23 -0400 Subject: 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. --- src/thread/pthread_getschedparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.1