Skip to content

Commit

Permalink
ALSA: emu10k1 - off by 1 in snd_emu10k1_wait()
Browse files Browse the repository at this point in the history
With `while (count++ < 16384)' count reaches 16385.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Roel Kluin authored and Takashi Iwai committed Apr 17, 2009
1 parent 0882e8d commit 5a47fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/emu10k1/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5a47fa3

Please sign in to comment.