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

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)