dect
/
linux-2.6
Archived
13
0
Fork 0

genirq: Fix cpumask leak in __setup_irq()

The allocated cpumask should be freed in __setup_irq().

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
LKML-Reference: <1301744375-6812-1-git-send-email-dfeng@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Xiaotian Feng 2011-04-02 19:39:35 +08:00 committed by Thomas Gleixner
parent 78fca1b958
commit 4f5058c3b7
1 changed files with 1 additions and 0 deletions

View File

@ -1051,6 +1051,7 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
register_irq_proc(irq, desc);
new->dir = NULL;
register_handler_proc(irq, new);
free_cpumask_var(mask);
return 0;