aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq
diff options
context:
space:
mode:
authorXiaotian Feng <dfeng@redhat.com>2011-04-02 07:39:35 -0400
committerThomas Gleixner <tglx@linutronix.de>2011-04-02 15:26:20 -0400
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 12a80fdae11c..07c1611f3899 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)
1051 register_irq_proc(irq, desc); 1051 register_irq_proc(irq, desc);
1052 new->dir = NULL; 1052 new->dir = NULL;
1053 register_handler_proc(irq, new); 1053 register_handler_proc(irq, new);
1054 free_cpumask_var(mask);
1054 1055
1055 return 0; 1056 return 0;
1056 1057