ALSA: emu10k1 - off by 1 in snd_emu10k1_wait()
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 16 Apr 2009 21:54:04 +0000 (23:54 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Apr 2009 10:53:05 +0000 (12:53 +0200)
With `while (count++ < 16384)' count reaches 16385.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/io.c

index 4bfc31d1b281bd6847e1eb6abfe75c9d8eb6ee9b..c1a5aa15af8fdb55101928dd6aaaaab2b617a374 100644 (file)
@@ -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;
        }