]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Use force_sig when handling address errors.
authorDavid Daney <ddaney@caviumnetworks.com>
Tue, 5 May 2009 19:49:47 +0000 (12:49 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 14 May 2009 12:50:29 +0000 (13:50 +0100)
commit3c38a26b5d1c602819a72e691d262174b1070945
treeb85da186188c8a9d6622849da5e73aa7896911c9
parent029b5b6c23ed63cf3640ab4549307097e9b17427
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