aboutsummaryrefslogtreecommitdiff
path: root/sound/oss
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-01-14 00:55:25 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-01-14 08:52:23 -0800
commitea8e1652c5f4202fa90cfae49f2ca8485423d263 (patch)
tree5c57a292356ca97eecea7da7bcbf2df876d14380 /sound/oss
parentbbde25b1257c169c119601590d011b9b3aaf77f8 (diff)
OSS msnd: fix array overflows
Fix array overflows in the OSS msnd driver spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/oss')
-rw-r--r--sound/oss/msnd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/oss/msnd.h b/sound/oss/msnd.h
index 05cf7865be5..d0ca582c458 100644
--- a/sound/oss/msnd.h
+++ b/sound/oss/msnd.h
@@ -233,8 +233,8 @@ typedef struct multisound_dev {
spinlock_t lock;
int nresets;
unsigned long recsrc;
- int left_levels[16];
- int right_levels[16];
+ int left_levels[32];
+ int right_levels[32];
int mixer_mod_count;
int calibrate_signal;
int play_sample_size, play_sample_rate, play_channels;