]> git.karo-electronics.de Git - karo-tx-linux.git/commit
microblaze: fix signal masking
authorMatt Fleming <matt.fleming@intel.com>
Wed, 4 Apr 2012 00:08:09 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 11 Apr 2012 04:45:42 +0000 (14:45 +1000)
commit47ae3473d956b314b189cdf86c26f7c94cf188f2
tree0492d5afb6a965b926f3d49507b88363802b170a
parentbec9d8e333a7cea127df51f435dc25947760c46b
microblaze: fix signal masking

There are a couple of problems with the current signal code,

1. If we failed to setup the signal stack frame then we should not be
   masking any signals.

2. ka->sa.sa_mask is only added to the current blocked signals list if
   SA_NODEFER is set in ka->sa.sa_flags.  If we successfully setup the
   signal frame and are going to run the handler then we must honour
   sa_mask.

Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/microblaze/kernel/signal.c