patch-2.1.4 linux/fs/proc/mem.c
Next file: linux/fs/proc/net.c
Previous file: linux/fs/proc/inode.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Oct 13 21:11:19 1996
- Orig file:
v2.1.3/linux/fs/proc/mem.c
- Orig date:
Sat Sep 28 23:27:46 1996
diff -u --recursive --new-file v2.1.3/linux/fs/proc/mem.c linux/fs/proc/mem.c
@@ -122,7 +122,7 @@
i = PAGE_SIZE-(addr & ~PAGE_MASK);
if (i > count)
i = count;
- memcpy_tofs(tmp, page, i);
+ copy_to_user(tmp, page, i);
addr += i;
tmp += i;
count -= i;
@@ -178,7 +178,7 @@
i = PAGE_SIZE-(addr & ~PAGE_MASK);
if (i > count)
i = count;
- memcpy_fromfs(page, tmp, i);
+ copy_from_user(page, tmp, i);
addr += i;
tmp += i;
count -= i;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov