patch-2.4.4 linux/arch/i386/lib/usercopy.c

Next file: linux/arch/i386/math-emu/control_w.h
Previous file: linux/arch/i386/lib/strstr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/arch/i386/lib/usercopy.c linux/arch/i386/lib/usercopy.c
@@ -34,6 +34,8 @@
 		else
 			mmx_copy_user_zeroing(to, from, n);
 	}
+	else
+		memset(to, 0, n);
 	return n;
 }
 
@@ -52,6 +54,8 @@
 {
 	if (access_ok(VERIFY_READ, from, n))
 		__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)