aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/task_mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index caf0337dff73..a05a669510a4 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -800,7 +800,7 @@ static ssize_t pagemap_read(struct file *file, char __user *buf,
800 start_vaddr = end; 800 start_vaddr = end;
801 801
802 len = min(count, PM_ENTRY_BYTES * pm.pos); 802 len = min(count, PM_ENTRY_BYTES * pm.pos);
803 if (copy_to_user(buf, pm.buffer, len) < 0) { 803 if (copy_to_user(buf, pm.buffer, len)) {
804 ret = -EFAULT; 804 ret = -EFAULT;
805 goto out_free; 805 goto out_free;
806 } 806 }