[IA64] sys32_signal() forgets to initialize ->sa_mask
authorTony Luck <tony.luck@intel.com>
Thu, 9 Feb 2006 22:41:41 +0000 (14:41 -0800)
committerTony Luck <tony.luck@intel.com>
Thu, 9 Feb 2006 22:41:41 +0000 (14:41 -0800)
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>
arch/ia64/ia32/ia32_signal.c

index 5856510210fac55247f15294469103c55d49dc6c..b3355a9ca2c3fb3b3b654dae5f7817936758b47c 100644 (file)
@@ -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);