Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217492
b: refs/heads/master
c: 70384dc
h: refs/heads/master
v: v3
  • Loading branch information
Gleb Natapov authored and Linus Torvalds committed Oct 26, 2010
1 parent a3ad6a8 commit 5e22080
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: 66d7dd518ae413a383ab2c6c263cc30617329842
refs/heads/master: 70384dc6dcc6aa76762200262820bdb8b724ecd5
4 changes: 2 additions & 2 deletions trunk/mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ static int do_move_page_to_node_array(struct mm_struct *mm,

err = -EFAULT;
vma = find_vma(mm, pp->addr);
if (!vma || !vma_migratable(vma))
if (!vma || pp->addr < vma->vm_start || !vma_migratable(vma))
goto set_status;

page = follow_page(vma, pp->addr, FOLL_GET);
Expand Down Expand Up @@ -1204,7 +1204,7 @@ static void do_pages_stat_array(struct mm_struct *mm, unsigned long nr_pages,
int err = -EFAULT;

vma = find_vma(mm, addr);
if (!vma)
if (!vma || addr < vma->vm_start)
goto set_status;

page = follow_page(vma, addr, 0);
Expand Down

0 comments on commit 5e22080

Please sign in to comment.