projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0882e8d
)
ALSA: emu10k1 - off by 1 in snd_emu10k1_wait()
author
Roel Kluin
<roel.kluin@gmail.com>
Thu, 16 Apr 2009 21:54:04 +0000
(23:54 +0200)
committer
Takashi 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
patch
|
blob
|
history
diff --git
a/sound/pci/emu10k1/io.c
b/sound/pci/emu10k1/io.c
index 4bfc31d1b281bd6847e1eb6abfe75c9d8eb6ee9b..c1a5aa15af8fdb55101928dd6aaaaab2b617a374 100644
(file)
--- 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;
}