Skip to contentSkip to conversation

sysirix.c returns wrong error ?

PATCH GOTO Masanori 2 participants 2 messages Jan 1, 2002 – Jan 2, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,

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

mips/kernel/sysirix.c renamed from mips/kernel/sysirix.c.vanilla +1 -1
@@ -1908,7 +1908,7 @@
 	}
 
 	if (put_user(0, eob) < 0) {
-		error = EFAULT;
+		error = -EFAULT;
 		goto out_putf;
 	}
 

-- gotom

#1 lore raw
Quoted 2 lines · GOTO Masanori

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

Yes, it's ok. I've applied the patch. I should mention though that I have not received ANY user reports about the IRIX 5 compat code since I've put it into the kernel in June 97 so chances the code is actually working are not so bright ;-)

Thanks anyway,

Ralf