ASoC: sta32x: Fix array access overflow
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Feb 2014 08:24:12 +0000 (09:24 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 1 Apr 2014 23:58:54 +0000 (00:58 +0100)
commit270bcf0672347f19f6214802c1842fa1e6d9fd2d
tree31bf88c9eafc5f40c708134c4803f0a304d7144c
parent8553a06b06825d49b4727c8ce4c54bd6f3d873a8
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: Ben Hutchings <ben@decadent.org.uk>
sound/soc/codecs/sta32x.c