summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2012-04-12 19:54:34 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-13 09:01:38 (GMT)
commit86fc49982369f6918dd9c6eeb70b38ab2303ed0a (patch)
tree71811d55a58d070407c6d31d32ae93dffd9af508 /sound/soc/soc-core.c
parent7e1f7c8a6e517900cd84da1b8ae020f08f286c3b (diff)
downloadlinux-fsl-qoriq-86fc49982369f6918dd9c6eeb70b38ab2303ed0a.tar.xz
ASoC: cs42l73: don't use negative array index
If cs42l73_get_mclkx_coeff() returns < 0 (which it can) in sound/soc/codecs/cs42l73.c::cs42l73_set_mclk(), then we'll be using the (negative) return value as array index on the very next line of code - that's bad. Catch the negative return value and propagate it to the caller (which checks for it) and things are a bit more sane :-) Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
0 files changed, 0 insertions, 0 deletions