[alsa-devel] [PATCH] ASoC: cs42l73: don't use negative array index

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Apr 13 11:02:00 CEST 2012


On Thu, Apr 12, 2012 at 09:54:34PM +0200, Jesper Juhl wrote:
> 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.

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120413/9d219213/attachment.sig 


More information about the Alsa-devel mailing list