summary refs log tree commit diff stats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2011-06-16 17:37:10 +0100
committerRiku Voipio <riku.voipio@iki.fi>2011-06-21 20:30:10 +0300
commitbc088ba1db4ec9e5c3bc3e6b2bac816673d9cbdd (patch)
treebe8d5e145abdeffe3c266e2c2721df307996a134 /linux-user/syscall.c
parent1add86983cbc972a3431368203f630e290c3f2bb (diff)
downloadfocaccia-qemu-bc088ba1db4ec9e5c3bc3e6b2bac816673d9cbdd.tar.gz
focaccia-qemu-bc088ba1db4ec9e5c3bc3e6b2bac816673d9cbdd.zip
linux-user: syscall should use sanitized arg1
Looking at the other architectures, we should be using "how" not "arg1".

Signed-off-by: Juan Quintela <quintela@redhat.com>
[peter.maydell@linaro.org: remove unnecessary initialisation of how]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 00484f1f18..5a919f68e7 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -7201,7 +7201,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
     case TARGET_NR_osf_sigprocmask:
         {
             abi_ulong mask;
-            int how = arg1;
+            int how;
             sigset_t set, oldset;
 
             switch(arg1) {
@@ -7220,7 +7220,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
             }
             mask = arg2;
             target_to_host_old_sigset(&set, &mask);
-            sigprocmask(arg1, &set, &oldset);
+            sigprocmask(how, &set, &oldset);
             host_to_target_old_sigset(&mask, &oldset);
             ret = mask;
         }