Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167749
b: refs/heads/master
c: b05ca73
h: refs/heads/master
i:
  167747: cb52c75
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Linus Torvalds committed Oct 29, 2009
1 parent 2aed912 commit fd1507d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: ab8a3e14e6f8e567560f664bbd29aefb306a274e
refs/heads/master: b05ca7385a2848abdc72051f832722641daed8b0
10 changes: 5 additions & 5 deletions trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ static long do_mbind(unsigned long start, unsigned long len,

err = migrate_prep();
if (err)
return err;
goto mpol_out;
}
{
NODEMASK_SCRATCH(scratch);
Expand All @@ -1039,10 +1039,9 @@ static long do_mbind(unsigned long start, unsigned long len,
err = -ENOMEM;
NODEMASK_SCRATCH_FREE(scratch);
}
if (err) {
mpol_put(new);
return err;
}
if (err)
goto mpol_out;

vma = check_range(mm, start, end, nmask,
flags | MPOL_MF_INVERT, &pagelist);

Expand All @@ -1062,6 +1061,7 @@ static long do_mbind(unsigned long start, unsigned long len,
putback_lru_pages(&pagelist);

up_write(&mm->mmap_sem);
mpol_out:
mpol_put(new);
return err;
}
Expand Down

0 comments on commit fd1507d

Please sign in to comment.