X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH] platform-x86: intel_mid_thermal: Fix memory leak
@ 2011-04-07 13:30 Ameya Palande
  2011-04-07 13:49 ` R, Durgadoss
  0 siblings, 1 reply; 5+ messages in thread
From: Ameya Palande @ 2011-04-07 13:30 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: mjg, durgadoss.r

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

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

end of thread, other threads:[~2011-05-09 14:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-07 13:30 [PATCH] platform-x86: intel_mid_thermal: Fix memory leak Ameya Palande
2011-04-07 13:49 ` R, Durgadoss
2011-04-12  7:13   ` Ameya Palande
2011-05-06 11:16   ` Ameya Palande
2011-05-09 14:40     ` Matthew Garrett

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