diff options
-rw-r--r-- | kernel/irq/proc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index 4f9427a30e14..09a2ee540bd2 100644 --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c | |||
@@ -38,14 +38,12 @@ static int irq_affinity_hint_proc_show(struct seq_file *m, void *v) | |||
38 | unsigned long flags; | 38 | unsigned long flags; |
39 | cpumask_var_t mask; | 39 | cpumask_var_t mask; |
40 | 40 | ||
41 | if (!alloc_cpumask_var(&mask, GFP_KERNEL)) | 41 | if (!zalloc_cpumask_var(&mask, GFP_KERNEL)) |
42 | return -ENOMEM; | 42 | return -ENOMEM; |
43 | 43 | ||
44 | raw_spin_lock_irqsave(&desc->lock, flags); | 44 | raw_spin_lock_irqsave(&desc->lock, flags); |
45 | if (desc->affinity_hint) | 45 | if (desc->affinity_hint) |
46 | cpumask_copy(mask, desc->affinity_hint); | 46 | cpumask_copy(mask, desc->affinity_hint); |
47 | else | ||
48 | cpumask_setall(mask); | ||
49 | raw_spin_unlock_irqrestore(&desc->lock, flags); | 47 | raw_spin_unlock_irqrestore(&desc->lock, flags); |
50 | 48 | ||
51 | seq_cpumask(m, mask); | 49 | seq_cpumask(m, mask); |