X86 platform drivers
 help / color / mirror / Atom feed
From: Ameya Palande <2ameya@gmail.com>
To: platform-driver-x86@vger.kernel.org
Cc: mjg@redhat.com, durgadoss.r@intel.com
Subject: [PATCH] platform-x86: intel_mid_thermal: Fix memory leak
Date: Thu,  7 Apr 2011 16:30:02 +0300	[thread overview]
Message-ID: <1302183002-3900-1-git-send-email-2ameya@gmail.com> (raw)

Signed-off-by: Ameya Palande <2ameya@gmail.com>
---
 drivers/platform/x86/intel_mid_thermal.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/intel_mid_thermal.c b/drivers/platform/x86/intel_mid_thermal.c
index 9ee707f..dd9494b 100644
--- a/drivers/platform/x86/intel_mid_thermal.c
+++ b/drivers/platform/x86/intel_mid_thermal.c
@@ -527,6 +527,7 @@ static int mid_thermal_remove(struct platform_device *pdev)
 	for (i = 0; i < MSIC_THERMAL_SENSORS; i++)
 		thermal_zone_device_unregister(pinfo->tzd[i]);
 
+	kfree(pinfo);
 	platform_set_drvdata(pdev, NULL);
 
 	/* Stop the ADC */
-- 
1.7.1

             reply	other threads:[~2011-04-07 13:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-07 13:30 Ameya Palande [this message]
2011-04-07 13:49 ` [PATCH] platform-x86: intel_mid_thermal: Fix memory leak R, Durgadoss
2011-04-12  7:13   ` Ameya Palande
2011-05-06 11:16   ` Ameya Palande
2011-05-09 14:40     ` Matthew Garrett

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=1302183002-3900-1-git-send-email-2ameya@gmail.com \
    --to=2ameya@gmail.com \
    --cc=durgadoss.r@intel.com \
    --cc=mjg@redhat.com \
    --cc=platform-driver-x86@vger.kernel.org \
    /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