]> git.karo-electronics.de Git - karo-tx-linux.git/commit
microblaze: fix signal masking
authorMatt Fleming <matt.fleming@intel.com>
Wed, 25 Apr 2012 01:03:20 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:13 +0000 (15:17 +1000)
commit4044867806f55d4026f8877c595fd587e42d1bb7
tree4a4d7b63560e59db29c9c505103424ce9c342d5d
parenta635af890268788bf85a76962a7aaf0447ad6fb0
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