* [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
* [tip:irq/urgent] genirq: Fix cpumask leak in __setup_irq()
2011-04-02 11:39 [PATCH] genirq: fix cpumask leak in __setup_irq() Xiaotian Feng
@ 2011-04-02 19:30 ` tip-bot for Xiaotian Feng
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Xiaotian Feng @ 2011-04-02 19:30 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, tglx, dfeng
Commit-ID: 4f5058c3b71ed5930bb2b478c4d5dbc799dd9ad1
Gitweb: http://git.kernel.org/tip/4f5058c3b71ed5930bb2b478c4d5dbc799dd9ad1
Author: Xiaotian Feng <dfeng@redhat.com>
AuthorDate: Sat, 2 Apr 2011 19:39:35 +0800
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Sat, 2 Apr 2011 21:26:20 +0200
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>
---
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;
^ 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