From: Jesper Juhl Date: Thu, 12 Apr 2012 19:54:34 +0000 (+0200) Subject: ASoC: cs42l73: don't use negative array index X-Git-Tag: v3.4-rc5~25^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86fc49982369f6918dd9c6eeb70b38ab2303ed0a;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed