[PATCH 1/2] thermal/drivers/imx: Fix thermal zone leak on probe error path
Frank Li
Frank.li at nxp.com
Sat Apr 11 17:58:55 PDT 2026
On Sun, Apr 12, 2026 at 03:03:03AM +0800, Felix Gu wrote:
> If pm_runtime_resume_and_get() fails after the thermal zone has been
> registered, the probe error path cleans up runtime PM but skips
> thermal_zone_device_unregister(), leaking the thermal zone device.
>
> Move thermal_zone_device_unregister() into disable_runtime_pm so all
Use devm_thermal_of_zone_register() to fix this problem
Frank
More information about the linux-arm-kernel
mailing list