linux/sound/pci/oxygen
Takashi Iwai 6ebc16e206 ALSA: oxygen: 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() on the error from the
probe callback using a new helper function.

Fixes: 596ae97ab0 ("ALSA: oxygen: Allocate resources with device-managed APIs")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220412102636.16000-35-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-04-12 17:58:40 +02:00
..
ak4396.h
cm9780.h
cs2000.h
cs4245.h
cs4362a.h
cs4398.h
Makefile
oxygen_io.c
oxygen_lib.c ALSA: oxygen: Fix the missing snd_card_free() call at probe error 2022-04-12 17:58:40 +02:00
oxygen_mixer.c
oxygen_pcm.c ALSA: Replace with fallthrough pseudo keyword in the remaining places 2020-07-09 19:10:43 +02:00
oxygen_regs.h
oxygen.c ALSA: oxygen: Allocate resources with device-managed APIs 2021-07-19 16:17:04 +02:00
oxygen.h ALSA: oxygen: Allocate resources with device-managed APIs 2021-07-19 16:17:04 +02:00
pcm1796.h
se6x.c ALSA: oxygen: Allocate resources with device-managed APIs 2021-07-19 16:17:04 +02:00
virtuoso.c ALSA: oxygen: Allocate resources with device-managed APIs 2021-07-19 16:17:04 +02:00
wm8766.h
wm8776.h
wm8785.h
xonar_cs43xx.c
xonar_dg_mixer.c
xonar_dg.c ALSA: pci: delete repeated words in comments 2020-08-06 09:30:02 +02:00
xonar_dg.h
xonar_hdmi.c
xonar_lib.c
xonar_pcm179x.c
xonar_wm87x6.c
xonar.h