]> git.karo-electronics.de Git - karo-tx-linux.git/commit
avr32: don't mask signals in the error path
authorMatt Fleming <matt.fleming@intel.com>
Wed, 25 Apr 2012 01:03:13 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:09 +0000 (15:17 +1000)
commitd5b76b5a192581fcb1c2f14608bc1aef1f4fd3e5
treed89abe6adb3ab08c5bb397979886bc4275b40694
parentff532534c2c7668e16dbaafe9fc846e2b75a19ea
avr32: don't mask signals in the error path

The current handle_signal() implementation is broken - it will mask
signals if we fail to setup the signal stack frame, which isn't the
desired behaviour, we should only be masking signals if we succeed in
setting up the stack frame.  It looks like this code was copied from the
old (broken) arm implementation but wasn't updated when the arm code was
fixed in commit a6c61e9dfdd0 ("[ARM] 3168/1: Update ARM signal delivery
and masking").

Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Acked-by: Havard Skinnemoen <hskinnemoen@gmail.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/avr32/kernel/signal.c