[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5hlfyvaw55.wl-tiwai@suse.de>
Date: Sat, 25 May 2019 08:25:10 +0200
From: Takashi Iwai <tiwai@...e.de>
To: "Colin King" <colin.king@...onical.com>
Cc: <alsa-devel@...a-project.org>,
"Liam Girdwood" <lgirdwood@...il.com>,
"Mark Brown" <broonie@...nel.org>,
"Jaroslav Kysela" <perex@...ex.cz>,
<kernel-janitors@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH][next] ASoC: cx2072x: fix integer overflow on unsigned int multiply
On Sat, 25 May 2019 00:25:51 +0200,
Colin King wrote:
>
> From: Colin Ian King <colin.king@...onical.com>
>
> In the case where frac_div larger than 96 the result of an unsigned
> multiplication overflows an unsigned int. For example, this can
> happen when the sample_rate is 192000 and pll_input is 122. Fix
> this by casing the first term of the mutiply to a u64. Also remove
> the extraneous parentheses around the expression.
>
> Addresses-Coverity: ("Unintentional integer overflow")
> Fixes: a497a4363706 ("ASoC: Add support for Conexant CX2072X CODEC")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Reviewed-by: Takashi Iwai <tiwai@...e.de>
thanks,
Takashi
Powered by blists - more mailing lists