[PATCH v2 3/3] mfd: exynos-lpass: Fix another error handling path in exynos_lpass_probe()
Krzysztof Kozlowski
krzk at kernel.org
Wed Apr 23 09:33:49 PDT 2025
On 21/04/2025 17:00, Christophe JAILLET wrote:
> If devm_of_platform_populate() fails, some clean-up needs to be done, as
> already done in the remove function.
>
> Add a new devm_add_action_or_reset() to fix the leak in the probe and
> remove the need of a remove function.
>
> Fixes: c695abab2429 ("mfd: Add Samsung Exynos Low Power Audio Subsystem driver")
> Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
> ---
> Compile tested only.
>
> Changes in v2:
> - Use a new devm_add_action_or_reset() to fix the leak in the probe
> and remove the need of a remove function.
> - Update the commit description accordingly
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
Best regards,
Krzysztof
More information about the linux-arm-kernel
mailing list