diff options
author | Mark Brown <broonie@linaro.org> | 2013-11-04 07:04:22 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-04 07:04:22 +0100 |
commit | 71d0c3a876e007f68fc2ed433119dd4f4dc408a7 (patch) | |
tree | e51d64b0629e6e61743888d65f69c3df006e8330 /sound | |
parent | Merge remote-tracking branch 'asoc/topic/wm8962' into asoc-next (diff) | |
parent | ASoC: wm8996: Fix negative array index read (diff) | |
download | linux-71d0c3a876e007f68fc2ed433119dd4f4dc408a7.tar.xz linux-71d0c3a876e007f68fc2ed433119dd4f4dc408a7.zip |
Merge remote-tracking branch 'asoc/topic/wm8996' into asoc-next
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8996.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index 46fe83d2b224..b70379ebd142 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c @@ -438,6 +438,8 @@ static int wm8996_get_retune_mobile_enum(struct snd_kcontrol *kcontrol, struct wm8996_priv *wm8996 = snd_soc_codec_get_drvdata(codec); int block = wm8996_get_retune_mobile_block(kcontrol->id.name); + if (block < 0) + return block; ucontrol->value.enumerated.item[0] = wm8996->retune_mobile_cfg[block]; return 0; |