diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-04-17 01:54:04 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-04-17 14:53:05 +0400 |
commit | 5a47fa3d30b5d1977b4e7d1daf5ba5b577258ce1 (patch) | |
tree | e189dcc05319e161ce51bc7cd47359fcfce66c36 /sound/pci/emu10k1 | |
parent | 0882e8dd3aad33eca41696d463bb896e6c8817eb (diff) | |
download | linux-5a47fa3d30b5d1977b4e7d1daf5ba5b577258ce1.tar.xz |
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>
Diffstat (limited to 'sound/pci/emu10k1')
-rw-r--r-- | sound/pci/emu10k1/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |