]> git.hungrycats.org Git - linux/commit
ASoC: sta32x: Fix array access overflow
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Feb 2014 08:24:12 +0000 (09:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 06:06:20 +0000 (22:06 -0800)
commit580a25104088f51b44ea7fcebc2384fec647418b
treea0840c32bc24a3a233030dbf1a059bfb0d866019
parente6c7dcbc2e23718b8e7990b17dbde92e9cf3ae63
ASoC: sta32x: Fix array access overflow

commit 025c3fa9256d4c54506b7a29dc3befac54f5c68d upstream.

Preset EQ enum of sta32x codec driver declares too many number of
items and it may lead to the access over the actual array size.

Use SOC_ENUM_SINGLE_DECL() helper and it's automatically fixed.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/sta32x.c