summaryrefslogtreecommitdiffstats
path: root/kernel/irq
diff options
context:
space:
mode:
authorXiaotian Feng <dfeng@redhat.com>2011-04-02 19:39:35 +0800
committerThomas Gleixner <tglx@linutronix.de>2011-04-02 21:26:20 +0200
commit4f5058c3b71ed5930bb2b478c4d5dbc799dd9ad1 (patch)
tree5c756cbcd329d62fb95744185b54c952eed903df /kernel/irq
parent78fca1b95837a44983608302e89c7258981be9b3 (diff)
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>
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/manage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 12a80fdae11..07c1611f389 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -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;