From: Adrian Bunk Date: Mon, 14 Jan 2008 08:55:25 +0000 (-0800) Subject: OSS msnd: fix array overflows X-Git-Tag: v2.6.24-rc8~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ea8e1652c5f4202fa90cfae49f2ca8485423d263;p=linux-2.6-omap-h63xx.git OSS msnd: fix array overflows Fix array overflows in the OSS msnd driver spotted by the Coverity checker. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;