Re: [PATCH v2 2/4] ASoC: cs4271: Disable regulators in component_probe() error path
From: Alexander Sverdlin
Date: Wed Oct 29 2025 - 07:14:03 EST
Hi!
On Wed, 2025-10-29 at 10:39 +0100, Herve Codina wrote:
> The commit 9a397f473657 ("ASoC: cs4271: add regulator consumer support")
> has introduced regulators in the driver.
>
> Regulators are enabled at the beginning of component_probe() but they
> are not disabled on errors. This can lead to unbalanced enable/disable.
>
> Fix the error path to disable regulators on errors.
>
> Fixes: 9a397f473657 ("ASoC: cs4271: add regulator consumer support")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Herve Codina <herve.codina@xxxxxxxxxxx>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxx>
--
Alexander Sverdlin.