diff options
author | Dan Carpenter <error27@gmail.com> | 2010-04-06 06:45:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-06 11:23:47 -0400 |
commit | 309361e09ca9e9670dc8664e5d14125bf82078af (patch) | |
tree | 2886267e80efa99d5447d56305e6560fd4cce410 /fs/proc | |
parent | 5fbfb18d7a5b846946d52c4a10e3aaa213ec31b6 (diff) |
proc: copy_to_user() returns unsigned
copy_to_user() returns the number of bytes left to be copied.
This was a typo from: d82ef020cf31 "proc: pagemap: Hold mmap_sem during
page walk".
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/task_mmu.c | 2 |
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 | } |