[PATCH] small typo in signal code for cris, mips and mips64

Stephen Rothwell (sfr@canb.auug.org.au)
Wed, 15 May 2002 00:53:19 +1000


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 -ruN 2.5.15/arch/cris/mm/fault.c 2.5.15-si.2/arch/cris/mm/fault.c --- 2.5.15/arch/cris/mm/fault.c Thu Jan 31 09:59:34 2002 +++ 2.5.15-si.2/arch/cris/mm/fault.c Wed May 15 00:00:31 2002 @@ -440,7 +440,7 @@ * Send a sigbus, regardless of whether we were in kernel * or user mode. */ - info.si_code = SIGBUS; + info.si_signo = SIGBUS; info.si_errno = 0; info.si_code = BUS_ADRERR; info.si_addr = (void *)address; diff -ruN 2.5.15/arch/mips/mm/fault.c 2.5.15-si.2/arch/mips/mm/fault.c --- 2.5.15/arch/mips/mm/fault.c Mon Aug 13 10:02:11 2001 +++ 2.5.15-si.2/arch/mips/mm/fault.c Wed May 15 00:19:48 2002 @@ -191,7 +191,7 @@ * 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 -ruN 2.5.15/arch/mips64/mm/fault.c 2.5.15-si.2/arch/mips64/mm/fault.c --- 2.5.15/arch/mips64/mm/fault.c Mon Sep 24 05:12:39 2001 +++ 2.5.15-si.2/arch/mips64/mm/fault.c Wed May 15 00:20:50 2002 @@ -247,7 +247,7 @@ * 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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/