]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OSS msnd: fix array overflows
authorAdrian Bunk <bunk@kernel.org>
Mon, 14 Jan 2008 08:55:25 +0000 (00:55 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 14 Jan 2008 16:52:23 +0000 (08:52 -0800)
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>
sound/oss/msnd.h

index 05cf7865be5e60c3df82172b163d288a0670d43a..d0ca582c4583e302f171c21e653ea4e5c43f7959 100644 (file)
@@ -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;