fix syscall argument bug in pthread_getschedparam
[musl] / src / thread / pthread_getschedparam.c
index 7b6a95f..3053c18 100644 (file)
@@ -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, &param);
+               r = -__syscall(SYS_sched_getparam, t->tid, param);
                if (!r) {
                        *policy = __syscall(SYS_sched_getscheduler, t->tid);
                }