summaryrefslogtreecommitdiffstats
path: root/lib/flex_proportions.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-07-05 17:23:36 +0200
committerTakashi Iwai <tiwai@suse.de>2022-07-05 17:24:05 +0200
commitc5e58c4545a69677d078b4c813b5d10d3481be9c (patch)
tree38c888a9d597fa2c465fbf009448e9ae9898f02e /lib/flex_proportions.c
parentdd84cfff3cc3b79c9d616f85bd1178df135cbd1a (diff)
downloadlinux-c5e58c4545a69677d078b4c813b5d10d3481be9c.tar.bz2
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: 5bff69b3645d ("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>
Diffstat (limited to 'lib/flex_proportions.c')
0 files changed, 0 insertions, 0 deletions