Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.3959);
	 Fri, 24 Oct 2008 09:18:38 -0700
Received: from chiesmta2-3.messageone.com ([216.203.30.55]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.3959);
	 Fri, 24 Oct 2008 09:18:37 -0700
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])
	by chiesmta2-3.messageone.com (8.13.8/8.13.8) with ESMTP id m9OGIYSx032640
	for <andy.sharp@onstor.com>; Fri, 24 Oct 2008 11:18:36 -0500
Received: from localhost.localdomain ([127.0.0.1]:21204 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S22304553AbYJXQSA (ORCPT <rfc822;andy.sharp@onstor.com>);
	Fri, 24 Oct 2008 17:18:00 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Oct 2008 17:17:43 +0100 (BST)
Received: from mba.ocn.ne.jp ([122.1.235.107]:738 "HELO smtp.mba.ocn.ne.jp")
	by ftp.linux-mips.org with SMTP id S22304552AbYJXQRM (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Fri, 24 Oct 2008 17:17:12 +0100
Received: from localhost.localdomain (p4039-ipad210funabasi.chiba.ocn.ne.jp [58.88.123.39])
	by smtp.mba.ocn.ne.jp (Postfix) with ESMTP
	id E34CBA9C7; Sat, 25 Oct 2008 01:17:05 +0900 (JST)
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
To: linux-mips@linux-mips.org
Cc: ralf@linux-mips.org
Subject: [PATCH] Set ENOSYS to errno on illegal system call number for syscall(2)
Date: 	Sat, 25 Oct 2008 01:17:23 +0900
Message-Id: <1224865043-3430-2-git-send-email-anemo@mba.ocn.ne.jp>
X-Mailer: git-send-email 1.5.6.3
X-archive-position: 20939
X-ecartis-version: Ecartis v1.0.0
Sender: linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: anemo@mba.ocn.ne.jp
Precedence: bulk
X-list: 	linux-mips
X-MessageOne-Virus-Version: vendor=fsecure engine=4.65.7400:2.4.4,1.2.40,4.0.164 definitions=2008-10-24_08:2008-10-10,2008-10-24,2008-10-24 signatures=0
X-MessageOne-Virus-Scanned: Clean
X-MessageOne-Envelope-Sender: linux-mips-bounce@linux-mips.org
X-MessageOne-Spam-Details: rule=m773emszm_notspam policy=m773emszm score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0810130000 definitions=main-0810240097
X-MessageOne-Spam-Score: 0
X-MessageOne-Spam-Bar: 
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 24 Oct 2008 16:18:38.0037 (UTC) FILETIME=[2BD3E850:01C935F4]

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


