提交 239dca9e 编写于 作者: A Ameya Palande 提交者: Matthew Garrett

platform-x86: intel_mid_thermal: Fix memory leak

Signed-off-by: NAmeya Palande <2ameya@gmail.com>
Signed-off-by: NMatthew Garrett <mjg@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册