OpenCloudOS-Kernel/sound/pci/rme9652
Takashi Iwai b2aa4f8069 ALSA: rme9652: 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: b1002b2d41 ("ALSA: rme9652: Allocate resources with device-managed APIs")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220412102636.16000-38-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-04-12 17:58:43 +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
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
rme9652.c ALSA: rme9652: Fix the missing snd_card_free() call at probe error 2022-04-12 17:58:43 +02:00