linux-stable/sound
Johan Hovold cc87f4db14 ASoC: codecs: wcd938x: fix resource leaks on bind errors
commit da29b94ed3 upstream.

Add the missing code to release resources on bind errors, including the
references taken by wcd938x_sdw_device_get() which also need to be
dropped on unbind().

Fixes: 16572522ae ("ASoC: codecs: wcd938x-sdw: add SoundWire driver")
Cc: stable@vger.kernel.org      # 5.14
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20231003155558.27079-4-johan+linaro@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-10-25 12:03:06 +02:00
..
ac97
aoa
arm
atmel
core ALSA: pcm: Fix missing fixup call in compat hw_refine ioctl 2023-09-13 09:42:59 +02:00
drivers
firewire
hda ALSA: hda: intel-sdw-acpi: Use u8 type for link index 2023-10-06 14:56:55 +02:00
i2c
isa
mips
oss
parisc
pci ALSA: hda/relatek: Enable Mute LED on HP Laptop 15s-fq5xxx 2023-10-25 12:03:05 +02:00
pcmcia
ppc
sh
soc ASoC: codecs: wcd938x: fix resource leaks on bind errors 2023-10-25 12:03:06 +02:00
sparc
spi
synth
usb ALSA: usb-audio: Fix microphone sound on Nexigo webcam. 2023-10-19 23:08:51 +02:00
virtio
x86
xen
ac97_bus.c
Kconfig um: Fix hostaudio build errors 2023-09-13 09:42:58 +02:00
last.c
Makefile
sound_core.c