Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f5058c3 authored by Xiaotian Feng's avatar Xiaotian Feng Committed by Thomas Gleixner
Browse files

genirq: Fix cpumask leak in __setup_irq()



The allocated cpumask should be freed in __setup_irq().

Signed-off-by: default avatarXiaotian Feng <dfeng@redhat.com>
LKML-Reference: <1301744375-6812-1-git-send-email-dfeng@redhat.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 78fca1b9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;