projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb8b646
)
platform-x86: intel_mid_thermal: Fix memory leak
author
Ameya Palande
<2ameya@gmail.com>
Thu, 7 Apr 2011 13:30:02 +0000
(16:30 +0300)
committer
Matthew Garrett
<mjg@redhat.com>
Fri, 27 May 2011 16:37:20 +0000
(12:37 -0400)
Signed-off-by: Ameya Palande <2ameya@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/intel_mid_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/intel_mid_thermal.c
b/drivers/platform/x86/intel_mid_thermal.c
index f0776504521f49d986d2d7a01fe75184ed293380..3a578323122b7b18750de7d31ecb570b878cef43 100644
(file)
--- 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 */