linux/sound/pci/rme9652
Takashi Iwai eab521aebc ALSA: hdspm: Fix the 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: 0195ca5fd1 ("ALSA: hdspm: Allocate resources with device-managed APIs")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220412102636.16000-37-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-04-12 17:58:42 +02:00
..
hdsp.c ALSA: hdsp: Fix the missing snd_card_free() call at probe error 2022-04-12 17:58:41 +02:00
hdspm.c ALSA: hdspm: Fix the missing snd_card_free() call at probe error 2022-04-12 17:58:42 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rme9652.c ALSA: pci: rme: Fix unaligned buffer addresses 2021-11-08 15:58:31 +01:00