Skip to content

Commit

Permalink
[IA64] sys32_signal() forgets to initialize ->sa_mask
Browse files Browse the repository at this point in the history
Pointed out by Oleg Nesterov <oleg@tv-sign.ru>, who in turn
got the hint from Linus.

Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Tony Luck committed Feb 9, 2006
1 parent b6bb761 commit 1ff0be1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/ia64/ia32/ia32_signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ sys32_signal (int sig, unsigned int handler)

sigact_set_handler(&new_sa, handler, 0);
new_sa.sa.sa_flags = SA_ONESHOT | SA_NOMASK;
sigemptyset(&new_sa.sa.sa_mask);

ret = do_sigaction(sig, &new_sa, &old_sa);

Expand Down

0 comments on commit 1ff0be1

Please sign in to comment.