]> git.karo-electronics.de Git - karo-tx-linux.git/commit
microblaze: don't reimplement force_sigsegv()
authorMatt Fleming <matt.fleming@intel.com>
Thu, 3 May 2012 05:43:20 +0000 (15:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:16 +0000 (15:46 +1000)
commit8bc84bbebea61b7665ec4260a4ceb22954e7d916
tree30e28d732dfba4fd5681f1e94486cd3bb640fef0
parent60609792da623742d2345740c07094cbf0d19154
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