aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/ia32/ia32_signal.c
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2006-02-09 14:41:41 -0800
committerTony Luck <tony.luck@intel.com>2006-02-09 14:41:41 -0800
commit1ff0be1534839dabec85f6d16dc36734f4e158bf (patch)
tree43877a8d27b81716f4b7a2ea2cf638186764b0ce /arch/ia64/ia32/ia32_signal.c
parentb6bb761897d3b0225fa9d61fc4782b02bab9a6e1 (diff)
downloadkernel_samsung_smdk4412-1ff0be1534839dabec85f6d16dc36734f4e158bf.zip
kernel_samsung_smdk4412-1ff0be1534839dabec85f6d16dc36734f4e158bf.tar.gz
kernel_samsung_smdk4412-1ff0be1534839dabec85f6d16dc36734f4e158bf.tar.bz2
[IA64] sys32_signal() forgets to initialize ->sa_mask
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>
Diffstat (limited to 'arch/ia64/ia32/ia32_signal.c')
-rw-r--r--arch/ia64/ia32/ia32_signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ia64/ia32/ia32_signal.c b/arch/ia64/ia32/ia32_signal.c
index 5856510..b3355a9 100644
--- a/arch/ia64/ia32/ia32_signal.c
+++ b/arch/ia64/ia32/ia32_signal.c
@@ -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);