patch-2.4.4 linux/include/asm-i386/uaccess.h

Next file: linux/include/asm-ia64/a.out.h
Previous file: linux/include/asm-i386/string.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/include/asm-i386/uaccess.h linux/include/asm-i386/uaccess.h
@@ -542,6 +542,8 @@
 {
 	if (access_ok(VERIFY_READ, from, n))
 		__constant_copy_user_zeroing(to,from,n);
+	else
+		memset(to, 0, n);
 	return n;
 }
 

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