]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/proc/kcore.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-2.6.18
[linux-2.6-omap-h63xx.git] / fs / proc / kcore.c
index 8d6d85d7400f829c44444fa5143858eedd193735..6a984f64edd7179893887528f07a63f90bf7b15c 100644 (file)
@@ -382,7 +382,7 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
                                 */
                                if (n) { 
                                        if (clear_user(buffer + tsz - n,
-                                                               tsz - n))
+                                                               n))
                                                return -EFAULT;
                                }
                        } else {