]> git.karo-electronics.de Git - karo-tx-linux.git/commit
microblaze: fix signal masking
authorMatt Fleming <matt.fleming@intel.com>
Thu, 3 May 2012 05:43:21 +0000 (15:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:17 +0000 (15:46 +1000)
commitc96843010b4f1f08406b9ac04b2c639d7f46023f
treecb549aef1327e22ed3ead33548f83c07a9501e73
parent99fd834e9d9bd7be8807cebb6f288af2e8c45d60
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