diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-04-16 17:54:04 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-04-17 06:53:05 -0400 |
commit | 5a47fa3d30b5d1977b4e7d1daf5ba5b577258ce1 (patch) | |
tree | e189dcc05319e161ce51bc7cd47359fcfce66c36 /sound | |
parent | 0882e8dd3aad33eca41696d463bb896e6c8817eb (diff) |
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) | |||
490 | if (newtime != curtime) | 490 | if (newtime != curtime) |
491 | break; | 491 | break; |
492 | } | 492 | } |
493 | if (count >= 16384) | 493 | if (count > 16384) |
494 | break; | 494 | break; |
495 | curtime = newtime; | 495 | curtime = newtime; |
496 | } | 496 | } |