ASoC: wm8994: check for array index returned
authorVinod Koul <vinod.koul@intel.com>
Tue, 28 May 2013 09:36:42 +0000 (15:06 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 May 2013 14:36:45 +0000 (15:36 +0100)
commit7d6898be8db92450ce7a0afcc4238680b9703e2b
tree7e83f95ad6b93aa1fe1857f12a6590bbb4946fab
parent9767a58b8b2a0b153c246fb6306c7d48d51bb379
ASoC: wm8994: check for array index returned

The array 'drc_cfg' of size 3 may use index value -22 (EINVAL)
The array 'retune_mobile_cfg' of size 3 may use index value -22 (EINVAL)

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c