Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263811
b: refs/heads/master
c: 2bbff6c
h: refs/heads/master
i:
  263809: c3126d7
  263807: 8031f3f
v: v3
  • Loading branch information
KAMEZAWA Hiroyuki authored and Linus Torvalds committed Sep 15, 2011
1 parent def657b commit 09a5ebd
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 8aacc9f550feb09c8b26470498345c192996a68e
refs/heads/master: 2bbff6c761e31b4642d297513cd3e0e89bc68ff7
4 changes: 3 additions & 1 deletion trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,9 @@ asmlinkage long compat_sys_get_mempolicy(int __user *policy,
err = sys_get_mempolicy(policy, nm, nr_bits+1, addr, flags);

if (!err && nmask) {
err = copy_from_user(bm, nm, alloc_size);
unsigned long copy_size;
copy_size = min_t(unsigned long, sizeof(bm), alloc_size);
err = copy_from_user(bm, nm, copy_size);
/* ensure entire bitmap is zeroed */
err |= clear_user(nmask, ALIGN(maxnode-1, 8) / 8);
err |= compat_put_bitmap(nmask, bm, nr_bits);
Expand Down

0 comments on commit 09a5ebd

Please sign in to comment.