patch-2.4.20 linux-2.4.20/arch/sparc/kernel/sys_sunos.c

Next file: linux-2.4.20/arch/sparc/mm/Makefile
Previous file: linux-2.4.20/arch/sparc/kernel/sparc_ksyms.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/arch/sparc/kernel/sys_sunos.c linux-2.4.20/arch/sparc/kernel/sys_sunos.c
@@ -488,7 +488,8 @@
 		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)