projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c207e7
)
[PATCH] sound/oss/sonicvibes.c: fix an array overflow
author
Adrian Bunk
<bunk@stusta.de>
Sun, 1 May 2005 15:59:30 +0000
(08:59 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:59:30 +0000
(08:59 -0700)
This patch fixes an array overflow found by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
sound/oss/sonicvibes.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/oss/sonicvibes.c
b/sound/oss/sonicvibes.c
index e1d69611a25736b82de23f0ab24605e491aa34ab..06047e7979af240e73cc6252ddcb1706c1156149 100644
(file)
--- a/
sound/oss/sonicvibes.c
+++ b/
sound/oss/sonicvibes.c
@@
-1149,7
+1149,7
@@
static int mixer_ioctl(struct sv_state *s, unsigned int cmd, unsigned long arg)
if (mixtable[i].rec)
break;
}
- if (
!mixtable[i].rec
)
+ if (
i == SOUND_MIXER_NRDEVICES
)
return 0;
spin_lock_irqsave(&s->lock, flags);
frobindir(s, SV_CIMIX_ADCINL, 0x1f, mixtable[i].rec << 5);