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 <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2026-06-12 13:33:45 +02:00
parent 0ec17ee704
commit 9420958c51

View 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));