patch-2.1.124 linux/include/asm-ppc/uaccess.h
Next file: linux/include/asm-ppc/unistd.h
Previous file: linux/include/asm-ppc/types.h
Back to the patch index
Back to the overall index
-  Lines: 16
-  Date:
Wed Sep 30 10:14:33 1998
-  Orig file: 
v2.1.123/linux/include/asm-ppc/uaccess.h
-  Orig date: 
Wed Aug 26 11:37:44 1998
diff -u --recursive --new-file v2.1.123/linux/include/asm-ppc/uaccess.h linux/include/asm-ppc/uaccess.h
@@ -211,12 +211,9 @@
 extern inline unsigned long
 copy_from_user(void *to, const void *from, unsigned long n)
 {
-	unsigned long res = n;
-	if (access_ok(VERIFY_READ, from, n)) {
-		 res = __copy_tofrom_user(to, from, n);
-		 if (res) memset((char *)to + n - res, 0, res);
-	}
-	return res;
+	if (access_ok(VERIFY_READ, from, n))
+		return __copy_tofrom_user(to, from, n);
+	return n;
 }
 
 extern inline unsigned long
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov