patch-2.4.20 linux-2.4.20/arch/sparc64/kernel/sys_sunos32.c

Next file: linux-2.4.20/arch/sparc64/kernel/time.c
Previous file: linux-2.4.20/arch/sparc64/kernel/sys_sparc32.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/arch/sparc64/kernel/sys_sunos32.c linux-2.4.20/arch/sparc64/kernel/sys_sunos32.c
@@ -446,7 +446,7 @@
 	ret |= copy_to_user(&name->ver[0], &system_utsname.version[0], sizeof(name->ver) - 1);
 	ret |= copy_to_user(&name->mach[0], &system_utsname.machine[0], sizeof(name->mach) - 1);
 	up_read(&uts_sem);
-	return ret;
+	return (ret ? -EFAULT : 0);
 }
 
 asmlinkage int sunos_nosys(void)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)