diff options
| author | Colin Ian King <[email protected]> | 2019-05-24 23:25:51 +0100 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2019-05-28 15:53:17 +0100 |
| commit | be0461048b60066eaba9046178fb96e78579af21 (patch) | |
| tree | 0dd85ab05276d1e27311df538d759e9a77c2d80d /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | eb5b12843b067d685a8d7a191b928b07934b2d02 (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 <[email protected]>
Reviewed-by: Takashi Iwai <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions