1
0
Fork 0

platform-x86: intel_mid_thermal: Fix memory leak

Signed-off-by: Ameya Palande <2ameya@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
wifi-calibration
Ameya Palande 2011-04-07 16:30:02 +03:00 committed by Matthew Garrett
parent cb8b646d8b
commit 239dca9e9a
1 changed files with 1 additions and 0 deletions

View File

@ -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 */