Commit 36ccf1c0 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Make integer overflow exceptions in kernel mode fatal.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 5914811a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* License. See the file "COPYING" in the main directory of this archive * License. See the file "COPYING" in the main directory of this archive
* for more details. * for more details.
* *
* Copyright (C) 1994 - 1999, 2000, 01 Ralf Baechle * Copyright (C) 1994 - 1999, 2000, 01, 06 Ralf Baechle
* Copyright (C) 1995, 1996 Paul M. Antoine * Copyright (C) 1995, 1996 Paul M. Antoine
* Copyright (C) 1998 Ulf Carlsson * Copyright (C) 1998 Ulf Carlsson
* Copyright (C) 1999 Silicon Graphics, Inc. * Copyright (C) 1999 Silicon Graphics, Inc.
...@@ -548,6 +548,8 @@ asmlinkage void do_ov(struct pt_regs *regs) ...@@ -548,6 +548,8 @@ asmlinkage void do_ov(struct pt_regs *regs)
{ {
siginfo_t info; siginfo_t info;
die_if_kernel("Integer overflow", regs);
info.si_code = FPE_INTOVF; info.si_code = FPE_INTOVF;
info.si_signo = SIGFPE; info.si_signo = SIGFPE;
info.si_errno = 0; info.si_errno = 0;
......
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