]> git.karo-electronics.de Git - karo-tx-linux.git/commit
microblaze: fix signal masking
authorMatt Fleming <matt.fleming@intel.com>
Thu, 12 Apr 2012 22:51:49 +0000 (08:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 03:47:09 +0000 (13:47 +1000)
commit1f4da3028952db12c8014cbfbddea6c4d245f664
treeb9f392a9f835432e20fa0f2d37ab57b771a65a50
parent2576ce3251a91222bf96493132b13f5802eef675
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