]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: seq: Don't re-bounce the error event
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 Jun 2026 11:33:45 +0000 (13:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 12 Jun 2026 15:30:08 +0000 (17:30 +0200)
The error bouncing may fail again, and we have no check for
re-bouncing.  For avoiding the loop, add the event type check at
bouncing, and stop re-bouncing if it's already a bounce error.

Link: https://patch.msgid.link/20260612113350.407465-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c

index 0ac6d92058d9a45ad5272d512e0379e01baf1989..28782e1776fa88fa38678f4ebae1ea480ddecee1 100644 (file)
@@ -536,6 +536,10 @@ static int bounce_error_event(struct snd_seq_client *client,
            ! client->accept_input)
                return 0; /* ignored */
 
+       if (event->type == SNDRV_SEQ_EVENT_BOUNCE ||
+           event->type == SNDRV_SEQ_EVENT_KERNEL_ERROR)
+               return err; /* avoid re-bouncing */
+
        /* set up quoted error */
        memset(&bounce_ev, 0, sizeof(bounce_ev));