[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/8] linux-user: syscall should use sanitized arg1
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 3/8] linux-user: syscall should use sanitized arg1 |
Date: |
Thu, 16 Jun 2011 17:37:10 +0100 |
From: Juan Quintela <address@hidden>
Looking at the other architectures, we should be using "how" not "arg1".
Signed-off-by: Juan Quintela <address@hidden>
address@hidden: remove unnecessary initialisation of how]
Signed-off-by: Peter Maydell <address@hidden>
---
linux-user/syscall.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index f3d03b0..2635b75 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -7058,7 +7058,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) {
@@ -7077,7 +7077,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;
}
--
1.7.1
- [Qemu-devel] [PATCH 0/8] linux-user: Fix gcc 4.6 compile warnings, Peter Maydell, 2011/06/16
- [Qemu-devel] [PATCH 5/8] flatload: memp was a write-only variable, Peter Maydell, 2011/06/16
- [Qemu-devel] [PATCH 1/8] linuxload: id_change was a write only variable, Peter Maydell, 2011/06/16
- [Qemu-devel] [PATCH 3/8] linux-user: syscall should use sanitized arg1,
Peter Maydell <=
- [Qemu-devel] [PATCH 8/8] linux-user/signal.c: Remove unused fenab, Peter Maydell, 2011/06/16
- [Qemu-devel] [PATCH 4/8] flatload: end_code was only used in a debug message, Peter Maydell, 2011/06/16
- [Qemu-devel] [PATCH 6/8] linux-user: Bump do_syscall() up to 8 syscall arguments, Peter Maydell, 2011/06/16
- [Qemu-devel] [PATCH 2/8] syscall: really return ret code, Peter Maydell, 2011/06/16
- [Qemu-devel] [PATCH 7/8] linux-user/signal.c: Remove only-ever-set variable fpu_save_addr, Peter Maydell, 2011/06/16