Commit 87c25437 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] MIPS/MIPS64 signal fix

(Included in 2.4)

Stephen Rothwell <sfr@canb.auug.org.au>: small typo in signal code for cris, mips and mips64:
  Hi Linus,

  This looks very obvious to me but I may be mistaken.

  I haven't even attempted to build this as I don't have machines
  of any of the affected archs.

  --
  Cheers,
  Stephen Rothwell                    sfr@canb.auug.org.au
  http://www.canb.auug.org.au/~sfr/
parent a8a066d4
......@@ -191,7 +191,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write,
* or user mode.
*/
tsk->thread.cp0_badvaddr = address;
info.si_code = SIGBUS;
info.si_signo = SIGBUS;
info.si_errno = 0;
info.si_code = BUS_ADRERR;
info.si_addr = (void *) address;
......
......@@ -247,7 +247,7 @@ do_page_fault(struct pt_regs *regs, unsigned long write, unsigned long address)
* or user mode.
*/
tsk->thread.cp0_badvaddr = address;
info.si_code = SIGBUS;
info.si_signo = SIGBUS;
info.si_errno = 0;
info.si_code = BUS_ADRERR;
info.si_addr = (void *) address;
......
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