Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98727
b: refs/heads/master
c: d79df63
h: refs/heads/master
i:
  98725: 62909c6
  98723: 3ee4ce6
  98719: 343d816
v: v3
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Jul 4, 2008
1 parent e9a5368 commit 64c4ba0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: b8a0b6ccf2ba2519ace65d782b41ee91bf3c3778
refs/heads/master: d79df630f622806c4d0e116fbaf6ebf6baf53461
6 changes: 5 additions & 1 deletion trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,11 @@ static long do_get_mempolicy(int *policy, nodemask_t *nmask,
} else {
*policy = pol == &default_policy ? MPOL_DEFAULT :
pol->mode;
*policy |= pol->flags;
/*
* Internal mempolicy flags must be masked off before exposing
* the policy to userspace.
*/
*policy |= (pol->flags & MPOL_MODE_FLAGS);
}

if (vma) {
Expand Down

0 comments on commit 64c4ba0

Please sign in to comment.