]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
MIPS: Set positive error number to errno on illegal_syscall
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 24 Oct 2008 16:17:22 +0000 (01:17 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 27 Oct 2008 16:18:26 +0000 (16:18 +0000)
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/scall32-o32.S
arch/mips/kernel/scall64-64.S

index 5e75a316f6b1b3fdb3b7db49feaf36f7752981cc..ffa23bd07173a51529941c7d077ac552d23298f9 100644 (file)
@@ -180,7 +180,7 @@ bad_stack:
         * The system call does not exist in this kernel
         */
 illegal_syscall:
-       li      v0, -ENOSYS                     # error
+       li      v0, ENOSYS                      # error
        sw      v0, PT_R2(sp)
        li      t0, 1                           # set error flag
        sw      t0, PT_R7(sp)
index 3d58204c9d44f9f2f380373fa474ba194cdaf424..a9e1716189948c2b76eaa47aa985208277d00667 100644 (file)
@@ -117,7 +117,7 @@ syscall_trace_entry:
 
 illegal_syscall:
        /* This also isn't a 64-bit syscall, throw an error.  */
-       li      v0, -ENOSYS                     # error
+       li      v0, ENOSYS                      # error
        sd      v0, PT_R2(sp)
        li      t0, 1                           # set error flag
        sd      t0, PT_R7(sp)