Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 */