]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sta32x: Fix array access overflow
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Feb 2014 08:24:12 +0000 (09:24 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 19 Feb 2014 16:46:05 +0000 (01:46 +0900)
commitf25398c8297284b8a78ea2f9752199de99ad39ca
treef42c79248ca180f6d728a2625229bb7c1888f53f
parent6333ef0a6d756a72c48035feae2450b64f0372e4
ASoC: sta32x: Fix array access overflow

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>
Cc: stable@vger.kernel.org
sound/soc/codecs/sta32x.c