]> git.karo-electronics.de Git - karo-tx-linux.git/commit
microblaze: don't reimplement force_sigsegv()
authorMatt Fleming <matt.fleming@intel.com>
Thu, 12 Apr 2012 22:51:48 +0000 (08:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 03:47:08 +0000 (13:47 +1000)
commite4258a592d7c787c88269593c3af3f952bd39db2
treee7bfbac579c4f7ea2c29810869966d61398289c6
parent63d933ceae7a2a81a6fd3dfa7a24560f914c1d2c
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