Re: [PATCH] thermal/drivers/mediatek/lvts_thermal: Fix a memory leak in an error handling path

From: Daniel Lezcano
Date: Tue Jan 30 2024 - 04:55:37 EST


On 28/01/2024 09:38, Christophe JAILLET wrote:
If devm_krealloc() fails, then 'efuse' is leaking.
So free it to avoid a leak.

Fixes: f5f633b18234 ("thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
---

Applied, thanks

--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog