From: Roel Kluin Date: Thu, 16 Apr 2009 21:54:04 +0000 (+0200) Subject: ALSA: emu10k1 - off by 1 in snd_emu10k1_wait() X-Git-Tag: v2.6.30-rc3~46^2^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5a47fa3d30b5d1977b4e7d1daf5ba5b577258ce1;p=karo-tx-linux.git ALSA: emu10k1 - off by 1 in snd_emu10k1_wait() With `while (count++ < 16384)' count reaches 16385. Signed-off-by: Roel Kluin Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/emu10k1/io.c b/sound/pci/emu10k1/io.c index 4bfc31d1b281..c1a5aa15af8f 100644 --- a/sound/pci/emu10k1/io.c +++ b/sound/pci/emu10k1/io.c @@ -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; }