patch-2.4.27 linux-2.4.27/fs/proc/kcore.c
Next file: linux-2.4.27/fs/proc/proc_misc.c
Previous file: linux-2.4.27/fs/proc/generic.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
2004-08-07 16:26:06.015402701 -0700
- Orig file:
linux-2.4.26/fs/proc/kcore.c
- Orig date:
2003-11-28 10:26:21.000000000 -0800
diff -urN linux-2.4.26/fs/proc/kcore.c linux-2.4.27/fs/proc/kcore.c
@@ -96,8 +96,9 @@
if (copy_to_user(buf, (void *) (PAGE_OFFSET+p-PAGE_SIZE), count))
return -EFAULT;
read += count;
+ p += count;
}
- *ppos += read;
+ *ppos = p;
return read;
}
#else /* CONFIG_KCORE_AOUT */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)