Skip to content
Commit 7378bc2f authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: jack: Fix endless loop at unique index detection

While the commit [d0a601c2

: ALSA: jack: Fix the id uniqueness
check] fixes the wrong string check, it leads to a worse result -- the
loop in get_available_index() goes into an endless loop.  The cause is
that snd_ctl_find_id() returns the object assigned to the numid if
it's set.  Thus it points to the previous entry again.

This patch clears the numid field for the next call properly.

Reported-and-tested-by: default avatarTomáš Pružina <pruzinat@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 650474fb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment