Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15379
b: refs/heads/master
c: 8f493d7
h: refs/heads/master
i:
  15377: 440742f
  15375: 289d521
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jan 3, 2006
1 parent 14ac468 commit 89f64d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abe842eb98c45e2b77c5868ef106616ca828a3e4
refs/heads/master: 8f493d797bc1fe470377adc9d8775845427e240e
4 changes: 4 additions & 0 deletions trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ static struct mempolicy *mpol_new(int mode, nodemask_t *nodes)
switch (mode) {
case MPOL_INTERLEAVE:
policy->v.nodes = *nodes;
if (nodes_weight(*nodes) == 0) {
kmem_cache_free(policy_cache, policy);
return ERR_PTR(-EINVAL);
}
break;
case MPOL_PREFERRED:
policy->v.preferred_node = first_node(*nodes);
Expand Down

0 comments on commit 89f64d5

Please sign in to comment.