linux-mips
[Top] [All Lists]

sysirix.c returns wrong error ?

To: linux-mips@oss.sgi.com
Subject: sysirix.c returns wrong error ?
From: GOTO Masanori <gotom@debian.or.jp>
Date: Wed, 02 Jan 2002 04:36:12 +0900
Sender: owner-linux-mips@oss.sgi.com
User-agent: Wanderlust/2.9.2 (Unchained Melody) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryōmae) APEL/10.3 Emacs/20.7 (i386-debian-linux-gnu) MULE/4.1 (AOI)
Hi,

The following patch is for kernel/sysirix.c kernel vanilla 2.4.17,
I think this routine returns wrong error... Is it ok?


--- arch/mips/kernel/sysirix.c.vanilla  Wed Jan  2 04:29:13 2002
+++ arch/mips/kernel/sysirix.c  Wed Jan  2 04:30:19 2002
@@ -1908,7 +1908,7 @@
        }
 
        if (put_user(0, eob) < 0) {
-               error = EFAULT;
+               error = -EFAULT;
                goto out_putf;
        }
 

-- gotom

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