]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mfd: exynos-lpass: Fix another error handling path in exynos_lpass_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 21 Apr 2025 15:00:35 +0000 (17:00 +0200)
committerLee Jones <lee@kernel.org>
Fri, 23 May 2025 07:48:55 +0000 (08:48 +0100)
commitf41cc37f4bc0e8cd424697bf6e26586cadcf4b9b
tree8347df4d5ea0a93b5a7345cd5d88013375920ca3
parentb70b84556eeca5262d290e8619fe0af5b7664a52
mfd: exynos-lpass: Fix another error handling path in exynos_lpass_probe()

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@wanadoo.fr>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/69471e839efc0249a504492a8de3497fcdb6a009.1745247209.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/exynos-lpass.c