Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139015
b: refs/heads/master
c: 09729a9
h: refs/heads/master
i:
  139013: 20399b0
  139011: a641348
  139007: 588d1b5
v: v3
  • Loading branch information
Milind Arun Choudhary authored and Alexey Dobriyan committed Mar 30, 2009
1 parent 43b3270 commit d0e16cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1681bc30f272dd2fe347b90468791b05c7044f03
refs/heads/master: 09729a9919fdaf137995b0f19cbd401e22229cac
8 changes: 4 additions & 4 deletions trunk/fs/proc/task_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@ static ssize_t pagemap_read(struct file *file, char __user *buf,
goto out_pages;
}

pm.out = (u64 *)buf;
pm.end = (u64 *)(buf + count);
pm.out = (u64 __user *)buf;
pm.end = (u64 __user *)(buf + count);

pagemap_walk.pmd_entry = pagemap_pte_range;
pagemap_walk.pte_hole = pagemap_pte_hole;
Expand All @@ -720,9 +720,9 @@ static ssize_t pagemap_read(struct file *file, char __user *buf,
if (ret == PM_END_OF_BUFFER)
ret = 0;
/* don't need mmap_sem for these, but this looks cleaner */
*ppos += (char *)pm.out - buf;
*ppos += (char __user *)pm.out - buf;
if (!ret)
ret = (char *)pm.out - buf;
ret = (char __user *)pm.out - buf;

out_pages:
for (; pagecount; pagecount--) {
Expand Down

0 comments on commit d0e16cc

Please sign in to comment.