mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] genirq: fix cpumask leak in __setup_irq()
@ 2011-04-02 11:39 Xiaotian Feng
  2011-04-02 19:30 ` [tip:irq/urgent] genirq: Fix " tip-bot for Xiaotian Feng
  0 siblings, 1 reply; 2+ messages in thread
From: Xiaotian Feng @ 2011-04-02 11:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: Xiaotian Feng, Thomas Gleixner

The allocated cpumask should be freed in __setup_irq().

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
---
 kernel/irq/manage.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 12a80fd..07c1611 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;
 
-- 
1.7.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-02 19:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-02 11:39 [PATCH] genirq: fix cpumask leak in __setup_irq() Xiaotian Feng
2011-04-02 19:30 ` [tip:irq/urgent] genirq: Fix " tip-bot for Xiaotian Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome