]> git.karo-electronics.de Git - karo-tx-linux.git/commit
microblaze: don't reimplement force_sigsegv()
authorMatt Fleming <matt.fleming@intel.com>
Wed, 4 Apr 2012 00:08:08 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 11 Apr 2012 04:45:42 +0000 (14:45 +1000)
commitc73b6ba5ebfc8bad5d32c4559857dc81a10473d8
tree16e0ce59a10ff0d91b4f18272bc3407111de31c6
parent6d3255254c59c54dfecaeef33723360e5f620ed0
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