]> 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>
Thu, 12 Apr 2012 22:51:40 +0000 (08:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 03:47:04 +0000 (13:47 +1000)
commit793670ccb2010421c6be8a585de3e8a01da996ae
tree3036e36c52989becabe67d50c3531d26407adf27
parent2c9e834bdca3cefc16035c46abfb2a37d63f7da0
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