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

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

diff -u --recursive --new-file v2.1.3/linux/fs/proc/root.c linux/fs/proc/root.c
@@ -226,7 +226,7 @@
 	len = 1 + sprintf(tmp, "%d", current->pid);
 	if (buflen < len)
 		len = buflen;
-	memcpy_tofs(buffer, tmp, len);
+	copy_to_user(buffer, tmp, len);
 	return len;
 }
 

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