From: Xiaotian Feng Date: Sat, 2 Apr 2011 11:39:35 +0000 (+0800) Subject: genirq: Fix cpumask leak in __setup_irq() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f5058c3b71ed5930bb2b478c4d5dbc799dd9ad1;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git genirq: Fix cpumask leak in __setup_irq() The allocated cpumask should be freed in __setup_irq(). Signed-off-by: Xiaotian Feng LKML-Reference: <1301744375-6812-1-git-send-email-dfeng@redhat.com> Signed-off-by: Thomas Gleixner --- 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) register_irq_proc(irq, desc); new->dir = NULL; register_handler_proc(irq, new); + free_cpumask_var(mask); return 0;