mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: tip-bot for Xiaotian Feng <dfeng@redhat.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
	tglx@linutronix.de, dfeng@redhat.com
Subject: [tip:irq/urgent] genirq: Fix cpumask leak in __setup_irq()
Date: Sat, 2 Apr 2011 19:30:56 GMT	[thread overview]
Message-ID: <tip-4f5058c3b71ed5930bb2b478c4d5dbc799dd9ad1@git.kernel.org> (raw)
In-Reply-To: <1301744375-6812-1-git-send-email-dfeng@redhat.com>

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;
 

      reply	other threads:[~2011-04-02 19:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-02 11:39 [PATCH] genirq: fix " Xiaotian Feng
2011-04-02 19:30 ` tip-bot for Xiaotian Feng [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-4f5058c3b71ed5930bb2b478c4d5dbc799dd9ad1@git.kernel.org \
    --to=dfeng@redhat.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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