From: Takashi Iwai Date: Fri, 12 Jun 2026 11:33:45 +0000 (+0200) Subject: ALSA: seq: Don't re-bounce the error event X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9420958c51514e02bc5af5c710990766ec244856;p=thirdparty%2Flinux.git ALSA: seq: Don't re-bounce the error event 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 --- diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c index 0ac6d92058d9..28782e1776fa 100644 --- a/sound/core/seq/seq_clientmgr.c +++ b/sound/core/seq/seq_clientmgr.c @@ -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));