]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] MIPS/MIPS64 signal fix
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 22 May 2002 05:23:50 +0000 (22:23 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Wed, 22 May 2002 05:23:50 +0000 (22:23 -0700)
(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/

arch/mips/mm/fault.c
arch/mips64/mm/fault.c

index 6820df7c55555497acb476ddd6582990357b1bd8..286d2648fad07342a962625db79f6a6c8b25b5e4 100644 (file)
@@ -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;
index fe7601bf38b7b8c1a2d6f694714689a8cc3ae0fa..68326e7362ade1f7db5a52c316e7482b7aa5d224 100644 (file)
@@ -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;