linux-stable/sound
Takashi Iwai c5e58c4545 ALSA: cs46xx: Fix missing snd_card_free() call at probe error
The previous cleanup with devres may lead to the incorrect release
orders at the probe error handling due to the devres's nature.  Until
we register the card, snd_card_free() has to be called at first for
releasing the stuff properly when the driver tries to manage and
release the stuff via card->private_free().

This patch fixes it by calling snd_card_free() manually on the error
from the probe callback.

Fixes: 5bff69b364 ("ALSA: cs46xx: Allocate resources with device-managed APIs")
Cc: <stable@vger.kernel.org>
Reported-and-tested-by: Jan Engelhardt <jengelh@inai.de>
Link: https://lore.kernel.org/r/p2p1s96o-746-74p4-s95-61qo1p7782pn@vanv.qr
Link: https://lore.kernel.org/r/20220705152336.350-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-07-05 17:24:05 +02:00
..
ac97
aoa
arm
atmel
core ASoC: Fixes for v5.19 2022-07-04 14:14:04 +02:00
drivers
firewire
hda ALSA: hda: Fix discovery of i915 graphics PCI device 2022-06-21 14:05:12 +02:00
i2c
isa m68knommu: changes for linux 5.19 2022-05-30 10:56:18 -07:00
mips
oss
parisc
pci ALSA: cs46xx: Fix missing snd_card_free() call at probe error 2022-07-05 17:24:05 +02:00
pcmcia
ppc
sh
soc ASoC: madera: Fix event generation for rate controls 2022-06-24 16:22:01 +01:00
sparc
spi
synth
usb ASoC: Fixes for v5.19 2022-07-04 14:14:04 +02:00
virtio
x86 ALSA: x86: intel_hdmi_audio: use pm_runtime_resume_and_get() 2022-06-17 10:46:38 +02:00
xen
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c