git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: test off by one in setsamplerate()
[safe/jmp/linux-2.6]
/
sound
/
pci
/
riptide
/
riptide.c
diff --git
a/sound/pci/riptide/riptide.c
b/sound/pci/riptide/riptide.c
index
b5ca02e
..
e66ef2b
100644
(file)
--- a/
sound/pci/riptide/riptide.c
+++ b/
sound/pci/riptide/riptide.c
@@
-1058,7
+1058,7
@@
setsamplerate(struct cmdif *cif, unsigned char *intdec, unsigned int rate)
rptr.retwords[2] != M &&
rptr.retwords[3] != N &&
i++ < MAX_WRITE_RETRY);
- if (i
==
MAX_WRITE_RETRY) {
+ if (i
>
MAX_WRITE_RETRY) {
snd_printdd("sent samplerate %d: %d failed\n",
*intdec, rate);
return -EIO;