Commit 239dca9e authored by Ameya Palande's avatar Ameya Palande Committed by Matthew Garrett

platform-x86: intel_mid_thermal: Fix memory leak

Signed-off-by: default avatarAmeya Palande <2ameya@gmail.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent cb8b646d
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment