]> git.karo-electronics.de Git - karo-tx-linux.git/commit
avr32: Don't mask signals in the error path
authorMatt Fleming <matt.fleming@linux.intel.com>
Fri, 19 Aug 2011 16:46:20 +0000 (17:46 +0100)
committerOleg Nesterov <oleg@redhat.com>
Wed, 24 Aug 2011 18:12:59 +0000 (20:12 +0200)
commit4a0a19a519ad7298fa25193e83c659e365695ef3
tree2c7967cb84b56f274a5222fd8dbcec93c9f034b6
parent2893fd7f11972117a6b8b5531bb2f6606341f7e3
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@linux.intel.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
arch/avr32/kernel/signal.c