Browse Source

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>
Roel Kluin 16 years ago
parent
commit
5a47fa3d30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sound/pci/emu10k1/io.c

+ 1 - 1
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;
 	}