diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-01-14 03:55:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-01-14 11:52:23 -0500 |
commit | ea8e1652c5f4202fa90cfae49f2ca8485423d263 (patch) | |
tree | 5c57a292356ca97eecea7da7bcbf2df876d14380 | |
parent | bbde25b1257c169c119601590d011b9b3aaf77f8 (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>
-rw-r--r-- | sound/oss/msnd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/oss/msnd.h b/sound/oss/msnd.h index 05cf7865be5e..d0ca582c4583 100644 --- a/sound/oss/msnd.h +++ b/sound/oss/msnd.h | |||
@@ -233,8 +233,8 @@ typedef struct multisound_dev { | |||
233 | spinlock_t lock; | 233 | spinlock_t lock; |
234 | int nresets; | 234 | int nresets; |
235 | unsigned long recsrc; | 235 | unsigned long recsrc; |
236 | int left_levels[16]; | 236 | int left_levels[32]; |
237 | int right_levels[16]; | 237 | int right_levels[32]; |
238 | int mixer_mod_count; | 238 | int mixer_mod_count; |
239 | int calibrate_signal; | 239 | int calibrate_signal; |
240 | int play_sample_size, play_sample_rate, play_channels; | 240 | int play_sample_size, play_sample_rate, play_channels; |