Skip to contentSkip to conversation

platform-x86: intel_mid_thermal: Fix memory leak

PATCH In review Ameya Palande 3 participants 5 messages Apr 7, 2011 – May 9, 2011 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform-x86: intel_mid_thermal: Fix memory leak

---
 drivers/platform/x86/intel_mid_thermal.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/platform/x86/intel_mid_thermal.c +1 -0
index 9ee707f..dd9494b 100644
@@ -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 */
Signature · 1 line
1.7.1
#3 lore raw
In reply to R, Durgadoss
Quoted 11 lines · Durgadoss
Quoted 9 lines

-----Original Message-----
From: Ameya Palande [mailto:[email protected]]
Sent: Thursday, April 07, 2011 7:00 PM
To: [email protected]
Cc: [email protected]; R, Durgadoss
Subject: [PATCH] platform-x86: intel_mid_thermal: Fix memory leak

---

Is this patch already queued for 2.6.40 release?

Cheers,
Ameya.