linux-user: fix mismatch of lock/unlock_user() invocations in rt_sigqueinfo() syscall
authorMiloš Stojanović <Milos.Stojanovic@rt-rk.com>
Mon, 15 May 2017 14:59:44 +0000 (16:59 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Mon, 29 May 2017 11:56:08 +0000 (14:56 +0300)
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>
linux-user/syscall.c

index 93bc6f679eef39811f9ae69aefbaf8cd2499cf13..de85bce167cf94d737b2324aa4abe95efc02c00c 100644 (file)
@@ -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;