ALSA: emu10k1 - off by 1 in snd_emu10k1_wait()
With `while (count++ < 16384)' count reaches 16385. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0882e8dd3a
commit
5a47fa3d30
|
@ -490,7 +490,7 @@ void snd_emu10k1_wait(struct snd_emu10k1 *emu, unsigned int wait)
|
|||
if (newtime != curtime)
|
||||
break;
|
||||
}
|
||||
if (count >= 16384)
|
||||
if (count > 16384)
|
||||
break;
|
||||
curtime = newtime;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue