From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Takashi Iwai <tiwai@suse.de>, Sasha Levin <sashal@kernel.org>
Subject: [PATCH 5.10.y 1/5] ALSA: usx2y: Avoid self-killing
Date: Wed, 16 Sep 2026 12:49:32 -0400 [thread overview]
Message-ID: <20260916164936.551732-1-sashal@kernel.org> (raw)
In-Reply-To: <2026091646-junkman-leverage-0c14@gregkh>
From: Takashi Iwai <tiwai@suse.de>
[ Upstream commit a11aa8537e13dd1082c85b102b98afc2a156a815 ]
The initialization os usx2y driver is multi-staged, and the PCM and
other device creations are done after the DSP is loaded and
initialized. Upon the initialization, when an error happens, the
driver tries to call snd_card_free(). But this is dangerous, and in
general, the driver cannot kill itself during its operation.
Hence better to drop the snd_card_free() call from there.
Link: https://lore.kernel.org/r/20210517131545.27252-6-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Stable-dep-of: 8f5ef203abda ("ALSA: usbusx2y: validate URB actual_length in interrupt callback")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
sound/usb/usx2y/usX2Yhwdep.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/usb/usx2y/usX2Yhwdep.c b/sound/usb/usx2y/usX2Yhwdep.c
index eeafe580d0382..0a4da61861ded 100644
--- a/sound/usb/usx2y/usX2Yhwdep.c
+++ b/sound/usb/usx2y/usX2Yhwdep.c
@@ -222,7 +222,6 @@ static int snd_usx2y_hwdep_dsp_load(struct snd_hwdep *hw,
err = usx2y_create_alsa_devices(hw->card);
if (err) {
snd_printk(KERN_ERR "usx2y_create_alsa_devices error %i\n", err);
- snd_card_free(hw->card);
return err;
}
priv->chip_status |= USX2Y_STAT_CHIP_INIT;
--
2.53.0
next prev parent reply other threads:[~2026-09-16 16:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-16 9:14 FAILED: patch "[PATCH] ALSA: usbusx2y: validate URB actual_length in interrupt" failed to apply to 5.10-stable tree gregkh
2026-09-16 16:49 ` Sasha Levin [this message]
2026-09-16 16:49 ` [PATCH 5.10.y 2/5] ALSA: usx2y: Fix potential memory leaks Sasha Levin
2026-09-16 16:49 ` [PATCH 5.10.y 3/5] ALSA: usx2y: Use standard print API Sasha Levin
2026-09-16 16:49 ` [PATCH 5.10.y 4/5] ALSA: usbusx2y: fix in04_last array size mismatch with in04_buf Sasha Levin
2026-09-16 16:49 ` [PATCH 5.10.y 5/5] ALSA: usbusx2y: validate URB actual_length in interrupt callback Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260916164936.551732-1-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=stable@vger.kernel.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox