Skip to content

Commit

Permalink
linux-user: syscall should use sanitized arg1
Browse files Browse the repository at this point in the history
Looking at the other architectures, we should be using "how" not "arg1".

Signed-off-by: Juan Quintela <[email protected]>
[[email protected]: remove unnecessary initialisation of how]
Signed-off-by: Peter Maydell <[email protected]>
Signed-off-by: Riku Voipio <[email protected]>
  • Loading branch information
Juan Quintela authored and suihkulokki committed Jun 21, 2011
1 parent 1add869 commit bc088ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linux-user/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}
Expand Down

0 comments on commit bc088ba

Please sign in to comment.