diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-04-16 23:54:04 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-04-17 12:53:05 +0200 |
commit | 5a47fa3d30b5d1977b4e7d1daf5ba5b577258ce1 (patch) | |
tree | e189dcc05319e161ce51bc7cd47359fcfce66c36 /sound | |
parent | 0882e8dd3aad33eca41696d463bb896e6c8817eb (diff) | |
download | linux-5a47fa3d30b5d1977b4e7d1daf5ba5b577258ce1.tar.bz2 |
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')
-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; } |