From: Takashi Iwai <tiwai@suse.de>
To: arina.kharlamova@mbzuai.ac.ae
Cc: "Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>,
"Šerif Rami" <ramiserifpersia@gmail.com>,
"Takashi Iwai" <tiwai@suse.de>,
linux-sound@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] ALSA: us144mkii: Do not submit a MIDI URB when there is no data
Date: Tue, 01 Dec 2026 08:53:33 +0100 [thread overview]
Message-ID: <878q291loi.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261129-s2p-c02-v1-1-b697e1fe317f@mbzuai.ac.ae>
On Sun, 29 Nov 2026 08:27:43 +0100,
Arina Kharlamova via B4 Relay wrote:
>
> From: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
>
> In tascam_midi_out_work_handler() the "No more data" break sits inside
> scoped_guard(), so it only leaves the guarded block and not the while
> loop. The URB is then anchored and submitted with the previous buffer
> contents and length, without its bit set in midi_out_urbs_in_flight.
>
> Return from the handler instead, as the "no free URBs" case already
> does. The guard drops the lock on return.
>
> Fixes: 67afec157fe6 ("ALSA: usb-audio: us144mkii: Add MIDI support and mixer controls")
> Cc: stable@vger.kernel.org
> Signed-off-by: Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>
Applied now. Thanks.
Takashi
prev parent reply other threads:[~2026-12-01 7:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 7:27 [PATCH] ALSA: us144mkii: Do not submit a MIDI URB when there is no data Arina Kharlamova via B4 Relay
2026-12-01 7:53 ` Takashi Iwai [this message]
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=878q291loi.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=arina.kharlamova@mbzuai.ac.ae \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=ramiserifpersia@gmail.com \
--cc=stable@vger.kernel.org \
--cc=tiwai@suse.com \
/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