summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel_mid_thermal.c
diff options
context:
space:
mode:
authorAmeya Palande <2ameya@gmail.com>2011-04-07 13:30:02 (GMT)
committerMatthew Garrett <mjg@redhat.com>2011-05-27 16:37:20 (GMT)
commit239dca9e9aff6630c22fef696978ba3a878f7d96 (patch)
tree05fb93d59accd54197d04f5175c37a51fd2b6e71 /drivers/platform/x86/intel_mid_thermal.c
parentcb8b646d8b27053d311595b4fc7dbe161d92683e (diff)
downloadlinux-fsl-qoriq-239dca9e9aff6630c22fef696978ba3a878f7d96.tar.xz
platform-x86: intel_mid_thermal: Fix memory leak
Signed-off-by: Ameya Palande <2ameya@gmail.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/intel_mid_thermal.c')
-rw-r--r--drivers/platform/x86/intel_mid_thermal.c1
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 f077650..3a57832 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 */