From: Miloš Stojanović Date: Mon, 15 May 2017 14:59:44 +0000 (+0200) Subject: linux-user: fix mismatch of lock/unlock_user() invocations in rt_sigqueinfo() syscall X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d8b6d892c66c1b6f505cd5a2576e08deea200e6d;p=qemu.git linux-user: fix mismatch of lock/unlock_user() invocations in rt_sigqueinfo() syscall Change the unlock_user() argument from arg1 to arg3 to match with lock_user(), since arg3 contains the pointer to the siginfo_t structure. Signed-off-by: Miloš Stojanović Signed-off-by: Riku Voipio --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 93bc6f679e..de85bce167 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8868,7 +8868,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, goto efault; } target_to_host_siginfo(&uinfo, p); - unlock_user(p, arg1, 0); + unlock_user(p, arg3, 0); ret = get_errno(sys_rt_sigqueueinfo(arg1, arg2, &uinfo)); } break;