Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139773
b: refs/heads/master
c: 4f032ac
h: refs/heads/master
i:
  139771: c5fbe13
v: v3
  • Loading branch information
Jack Steiner authored and Linus Torvalds committed Apr 3, 2009
1 parent f1d259e commit 05b4cd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 2d09cde985702503970d7cc18d762fae17e1cf88
refs/heads/master: 4f032ac4122a77dbabf7a24b2739b2790448180f
4 changes: 2 additions & 2 deletions trunk/lib/cpumask.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node)
#endif
/* FIXME: Bandaid to save us from old primitives which go to NR_CPUS. */
if (*mask) {
unsigned char *ptr = (unsigned char *)cpumask_bits(*mask);
unsigned int tail;
tail = BITS_TO_LONGS(NR_CPUS - nr_cpumask_bits) * sizeof(long);
memset(cpumask_bits(*mask) + cpumask_size() - tail,
0, tail);
memset(ptr + cpumask_size() - tail, 0, tail);
}

return *mask != NULL;
Expand Down

0 comments on commit 05b4cd7

Please sign in to comment.