Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125707
b: refs/heads/master
c: 2a53008
h: refs/heads/master
i:
  125705: 5237cbe
  125703: 53da3b8
v: v3
  • Loading branch information
Rusty Russell committed Dec 31, 2008
1 parent b8a2074 commit af3ad69
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 5db0e1e9e0f30f160b832a0b5cd1131954bf4f6e
refs/heads/master: 2a53008033189ed09bfe241c6b33811ba4ce980d
8 changes: 8 additions & 0 deletions trunk/lib/cpumask.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node)
dump_stack();
}
#endif
/* FIXME: Bandaid to save us from old primitives which go to NR_CPUS. */
if (*mask) {
unsigned int tail;
tail = BITS_TO_LONGS(NR_CPUS - nr_cpumask_bits) * sizeof(long);
memset(cpumask_bits(*mask) + cpumask_size() - tail,
0, tail);
}

return *mask != NULL;
}
EXPORT_SYMBOL(alloc_cpumask_var_node);
Expand Down

0 comments on commit af3ad69

Please sign in to comment.