acrn-kernel/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
..
Makefile
ak4396.h
cm9780.h
cs2000.h
cs4245.h
cs4362a.h
cs4398.h
oxygen.c
oxygen.h
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
oxygen_regs.h
pcm1796.h
se6x.c
virtuoso.c
wm8766.h
wm8776.h
wm8785.h
xonar.h
xonar_cs43xx.c
xonar_dg.c
xonar_dg.h
xonar_dg_mixer.c
xonar_hdmi.c
xonar_lib.c
xonar_pcm179x.c
xonar_wm87x6.c