linux-mips
[Top] [All Lists]

[PATCH] Set ENOSYS to errno on illegal system call number for syscall(2)

To: linux-mips@linux-mips.org
Subject: [PATCH] Set ENOSYS to errno on illegal system call number for syscall(2)
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Sat, 25 Oct 2008 01:17:23 +0900
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 arch/mips/kernel/scall32-o32.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S
index ffa23bd..759f680 100644
--- a/arch/mips/kernel/scall32-o32.S
+++ b/arch/mips/kernel/scall32-o32.S
@@ -293,7 +293,7 @@ bad_alignment:
        jr      t2
        /* Unreached */
 
-einval:        li      v0, -EINVAL
+einval:        li      v0, -ENOSYS
        jr      ra
        END(sys_syscall)
 
-- 
1.5.6.3


<Prev in Thread] Current Thread [Next in Thread>