Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186223
b: refs/heads/master
c: c08c6e1
h: refs/heads/master
i:
  186221: 5d23368
  186219: 18bbb59
  186215: 070807d
  186207: efec01c
v: v3
  • Loading branch information
Steven J. Magnani authored and Linus Torvalds committed Mar 6, 2010
1 parent 1589488 commit 6834054
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: f047f4f3792344901e1ea18a180515d7d5349e02
refs/heads/master: c08c6e1f54c85fc299cf9f88cf330d6dd28a9a1d
4 changes: 2 additions & 2 deletions trunk/mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
(VM_MAYREAD | VM_MAYWRITE) : (VM_READ | VM_WRITE);

for (i = 0; i < nr_pages; i++) {
vma = find_vma(mm, start);
vma = find_extend_vma(mm, start);
if (!vma)
goto finish_or_fault;

Expand Down Expand Up @@ -764,7 +764,7 @@ EXPORT_SYMBOL(find_vma);
*/
struct vm_area_struct *find_extend_vma(struct mm_struct *mm, unsigned long addr)
{
return find_vma(mm, addr);
return find_vma(mm, addr & PAGE_MASK);
}

/*
Expand Down

0 comments on commit 6834054

Please sign in to comment.