mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
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:
parent
0ec17ee704
commit
9420958c51
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user