summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorMiloš Stojanović2017-05-15 16:59:44 +0200
committerRiku Voipio2017-05-29 13:56:08 +0200
commitd8b6d892c66c1b6f505cd5a2576e08deea200e6d (patch)
treea38c9170dfd7e72b733059f6d2d07d00d44ffe1d /linux-user/syscall.c
parentlinux-user: fix ssetmask() system call (diff)
downloadqemu-d8b6d892c66c1b6f505cd5a2576e08deea200e6d.tar.gz
qemu-d8b6d892c66c1b6f505cd5a2576e08deea200e6d.tar.xz
qemu-d8b6d892c66c1b6f505cd5a2576e08deea200e6d.zip
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ć <Milos.Stojanovic@rt-rk.com> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c2
1 files changed, 1 insertions, 1 deletions
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;