Re: [PATCH] ASoC: cs42l73: don't use negative array index

From: Mark Brown
Date: Fri Apr 13 2012 - 05:02:06 EST


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.

Attachment: signature.asc
Description: Digital signature