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

Next file: linux/arch/i386/mm/init.c
Previous file: linux/arch/i386/kernel/signal.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.117/linux/arch/i386/lib/usercopy.c linux/arch/i386/lib/usercopy.c
@@ -7,7 +7,7 @@
  */
 #include <asm/uaccess.h>
 
-inline unsigned long
+unsigned long
 __generic_copy_to_user(void *to, const void *from, unsigned long n)
 {
 	if (access_ok(VERIFY_WRITE, to, n))
@@ -15,11 +15,11 @@
 	return n;
 }
 
-inline unsigned long
+unsigned long
 __generic_copy_from_user(void *to, const void *from, unsigned long n)
 {
 	if (access_ok(VERIFY_READ, from, n))
-		__copy_user(to,from,n);
+		__copy_user_zeroing(to,from,n);
 	return n;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov