patch-2.1.4 linux/fs/proc/net.c

Next file: linux/fs/proc/root.c
Previous file: linux/fs/proc/mem.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/fs/proc/net.c linux/fs/proc/net.c
@@ -72,7 +72,7 @@
 		/*
  		 *	Copy the bytes
 		 */
-		memcpy_tofs(buf+copied, start, length);
+		copy_to_user(buf+copied, start, length);
 		file->f_pos += length;	/* Move down the file */
 		bytes  -= length;
 		copied += length;

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