MIPS: Use force_sig when handling address errors.
commit49cf0e2d68dd98dbb28eaca0284e8460ab6ad86d
authorDavid Daney <ddaney@caviumnetworks.com>
Tue, 5 May 2009 19:49:47 +0000 (5 12:49 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 5 May 2009 20:48:33 +0000 (5 21:48 +0100)
tree1d6fbc49e7e4f319884b79638dc42cbf23964212
parentb0aec16664c39eac8ba59bdd8b86f8373fc6f680
MIPS: Use force_sig when handling address errors.

When init is started it is SIGNAL_UNKILLABLE.  If it were to get an
address error, we would try to send it SIGBUS, but it would be ignored
and the faulting instruction restarted.  This results in an endless
loop.

We need to use force_sig() instead so it will actually die and give us
some useful information.

Reported-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/unaligned.c