Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192212
b: refs/heads/master
c: 4308ad8
h: refs/heads/master
v: v3
  • Loading branch information
Peter P Waskiewicz Jr authored and Thomas Gleixner committed May 12, 2010
1 parent 07d06fa commit f8f89ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: e7a297b0d7d6049bd4e423ac1e17da31e4c401b8
refs/heads/master: 4308ad801193f14ff42cb746da37cf07e35f0d08
4 changes: 1 addition & 3 deletions trunk/kernel/irq/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,12 @@ static int irq_affinity_hint_proc_show(struct seq_file *m, void *v)
unsigned long flags;
cpumask_var_t mask;

if (!alloc_cpumask_var(&mask, GFP_KERNEL))
if (!zalloc_cpumask_var(&mask, GFP_KERNEL))
return -ENOMEM;

raw_spin_lock_irqsave(&desc->lock, flags);
if (desc->affinity_hint)
cpumask_copy(mask, desc->affinity_hint);
else
cpumask_setall(mask);
raw_spin_unlock_irqrestore(&desc->lock, flags);

seq_cpumask(m, mask);
Expand Down

0 comments on commit f8f89ad

Please sign in to comment.