From: Adrian Bunk Date: Mon, 14 Jan 2008 08:55:25 +0000 (-0800) Subject: OSS msnd: fix array overflows X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea8e1652c5f4202fa90cfae49f2ca8485423d263;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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 05cf7865be5e..d0ca582c4583 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;