diff options
| author | 2019-05-24 23:25:51 +0100 | |
|---|---|---|
| committer | 2019-05-28 15:53:17 +0100 | |
| commit | be0461048b60066eaba9046178fb96e78579af21 (patch) | |
| tree | 0dd85ab05276d1e27311df538d759e9a77c2d80d /scripts/checkstack.pl | |
| parent | dt-bindings: sound: sun4i-i2s: Document that the RX channel can be missing (diff) | |
ASoC: cx2072x: fix integer overflow on unsigned int multiply
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@canonical.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
