]> git.karo-electronics.de Git - karo-tx-linux.git/commit
microblaze: don't reimplement force_sigsegv()
authorMatt Fleming <matt.fleming@intel.com>
Wed, 25 Apr 2012 01:03:20 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:13 +0000 (15:17 +1000)
commitabf9f2c1a236c9cf17711087b00b648c7074ea74
tree55cb4172767328bca2d9b5c149f91a52c5c45b4b
parentd8fa9471859d8776a0c02f079d299cdda6070c8a
microblaze: don't reimplement force_sigsegv()

Instead of open coding the sequence from force_sigsegv() just call it.
This also fixes a bug because we were modifying ka->sa.sa_handler (which
is a copy of sighand->action[]), whereas the intention of the code was to
modify sighand->action[] directly.

As the original code was working with a copy it had no effect on signal
delivery.

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