xtensa: don't mask signals if we fail to setup signal stack
authorMatt Fleming <matt.fleming@intel.com>
Wed, 21 Mar 2012 23:33:45 +0000 (16:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 22 Mar 2012 00:54:55 +0000 (17:54 -0700)
commit3785006ac3c8941feb63097c416de92114a6bc39
tree07786cb16957a846eae8716bb311d5c4b9cb7736
parentff6d21e7aafe3cf4b20697f67e656caa4daef40b
xtensa: don't mask signals if we fail to setup signal stack

setup_frame() needs to return an indication of whether it succeeded or
failed in setting up the signal stack frame.  If setup_frame() fails then
we must not modify current->blocked.

Acked-by: Oleg Nesterov <oleg@redhat.com>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/xtensa/kernel/signal.c