Commit 17d8878c authored by David S. Miller's avatar David S. Miller

[SPARC64]: Handle kernel integer divide by zero properly.

parent 92c633ae
......@@ -1524,6 +1524,8 @@ void do_div0(struct pt_regs *regs)
{
siginfo_t info;
if (regs->tstate & TSTATE_PRIV)
die_if_kernel("TL0: Kernel divide by zero.", regs);
if (test_thread_flag(TIF_32BIT)) {
regs->tpc &= 0xffffffff;
regs->tnpc &= 0xffffffff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment