android_kernel_motorola_sm6375/sound/soc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Haotian Zhang 335c071417 ASoC: cs4271: Fix regulator leak on probe failure
[ Upstream commit 6b6eddc63ce871897d3a5bc4f8f593e698aef104 ]

The probe function enables regulators at the beginning
but fails to disable them in its error handling path.
If any operation after enabling the regulators fails,
the probe will exit with an error, leaving the regulators
permanently enabled, which could lead to a resource leak.

Add a proper error handling path to call regulator_bulk_disable()
before returning an error.

Fixes: 9a397f4736 ("ASoC: cs4271: add regulator consumer support")
Signed-off-by: Haotian Zhang <[email protected]>
Reviewed-by: Charles Keepax <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2025-12-03 12:45:18 +01:00
..
adi
amd
atmel Revert "ASoC: atmel: Remove system clock tree configuration for at91sam9g20ek" 2024-01-25 14:34:29 -08:00
au1x ASoC: allow module autoloading for table db1200_pids 2024-11-08 16:20:25 +01:00
bcm
cirrus
codecs ASoC: cs4271: Fix regulator leak on probe failure 2025-12-03 12:45:18 +01:00
dwc
fsl ASoC: fsl_sai: Force a software reset when starting in consumer mode 2025-08-28 16:21:16 +02:00
generic
hisilicon
img
intel ASoC: Intel: bytcr_rt5651: Fix invalid quirk input mapping 2025-10-29 13:59:48 +01:00
jz4740
kirkwood
mediatek
meson ASoC: meson: meson-card-utils: use of_property_present() for DT parsing 2025-07-17 18:24:52 +02:00
mxs
pxa ASoC: pxa: fix a memory leak in probe() 2023-10-25 11:53:24 +02:00
qcom ASoC: qdsp6: q6asm: do not sleep while atomic 2025-12-03 12:45:05 +01:00
rockchip
samsung
sh ASoC: rsnd: don't indicate warning on rsnd_kctrl_accept_runtime() 2025-04-10 14:29:36 +02:00
sirf
sof ASoC: SOF: Intel: hda-stream: Fix incorrect variable used in error message 2025-10-02 13:34:31 +02:00
spear
sprd
sti
stm ASoC: stm: Prevent potential division by zero in stm32_sai_get_clk_div() 2024-12-14 19:44:21 +01:00
sunxi ASoC: sun4i-spdif: Add clock multiplier settings 2025-03-13 12:42:55 +01:00
tegra
ti ASoC: ti: omap-hdmi: Fix too long driver name 2024-07-27 10:38:30 +02:00
txx9
uniphier
ux500
xilinx
xtensa
zte
Kconfig
Makefile
soc-ac97.c
soc-acpi.c
soc-component.c
soc-compress.c
soc-core.c
soc-dai.c
soc-dapm.c ASoC: soc-dapm: set bias_level if snd_soc_dapm_set_bias_level() was successed 2025-08-28 16:21:25 +02:00
soc-devres.c
soc-generic-dmaengine-pcm.c
soc-io.c
soc-jack.c
soc-ops.c ASoC: ops: dynamically allocate struct snd_ctl_elem_value 2025-08-28 16:21:18 +02:00
soc-pcm.c
soc-topology.c ASoC: topology: Properly initialize soc_enum values 2024-09-12 11:03:53 +02:00
soc-utils.c