microblaze: don't reimplement force_sigsegv()
authorMatt Fleming <matt.fleming@intel.com>
Fri, 11 May 2012 00:58:03 +0000 (10:58 +1000)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 22 May 2012 03:52:33 +0000 (23:52 -0400)
commitde8f2ddd69fc817b66138b36d656a2973d6afd8a
tree73ee9f6aafd5d4f4b38c9875e0dd8c1821c15c6d
parent4c3181bd3bde449d79b04e127b41ef02cade8005
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>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/microblaze/kernel/signal.c