linux-stable/sound/drivers
Takashi Iwai cb981d5c75 ALSA: mtpav: Don't call card private_free at probe error path
[ Upstream commit 4fb2719087 ]

The card destructor of nm256 driver does merely stopping the running
timer, and it's superfluous for the probe error handling.  Moreover,
calling this via the previous devres change would lead to another
problem due to the reverse call order.

This patch moves the setup of the private_free callback after the card
registration, so that it can be used only after fully set up.

Fixes: aa92050f10 ("ALSA: mtpav: Allocate resources with device-managed APIs")
Link: https://lore.kernel.org/r/20220412102636.16000-39-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-20 09:34:12 +02:00
..
mpu401
opl3 ALSA: drivers: opl3: Fix incorrect use of vp->state 2021-12-29 12:28:50 +01:00
opl4
pcsp ALSA: pcsp: Make hrtimer forwarding more robust 2021-09-28 10:58:08 +02:00
vx
aloop.c
dummy.c
Kconfig
Makefile
mtpav.c ALSA: mtpav: Don't call card private_free at probe error path 2022-04-20 09:34:12 +02:00
mts64.c
portman2x4.c
serial-u16550.c
virmidi.c