From: Rusty Russell Date: Wed, 22 May 2002 05:23:50 +0000 (-0700) Subject: [PATCH] MIPS/MIPS64 signal fix X-Git-Tag: v2.5.18~27^2~13 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=87c2543780d197d268c09302fcb408a2afe8ff0b;p=history.git [PATCH] MIPS/MIPS64 signal fix (Included in 2.4) Stephen Rothwell : 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/ --- diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index 6820df7c5555..286d2648fad0 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c @@ -191,7 +191,7 @@ do_sigbus: * 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; diff --git a/arch/mips64/mm/fault.c b/arch/mips64/mm/fault.c index fe7601bf38b7..68326e7362ad 100644 --- a/arch/mips64/mm/fault.c +++ b/arch/mips64/mm/fault.c @@ -247,7 +247,7 @@ do_sigbus: * 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;