Re: [PATCH] thermal/drivers/mediatek/lvts_thermal: Fix a memory leak in an error handling path
From: AngeloGioacchino Del Regno
Date: Tue Jan 30 2024 - 03:36:28 EST
Il 28/01/24 09:38, Christophe JAILLET ha scritto:
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>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>