Skip to content

Commit

Permalink
OSS msnd: fix array overflows
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jan 14, 2008
1 parent bbde25b commit ea8e165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/oss/msnd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea8e165

Please sign in to comment.