diff options
author | 2017-03-20 13:58:05 +0000 | |
---|---|---|
committer | 2017-03-20 16:11:39 +0000 | |
commit | d2c14c64d678713fced6f2261ce7d398b4351de5 (patch) | |
tree | dac36ad6910b92db430c54ed480c0ecf541d3652 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | spi: loopback-test: add test spi_message with delay after transfers (diff) | |
download | wireguard-linux-d2c14c64d678713fced6f2261ce7d398b4351de5.tar.xz wireguard-linux-d2c14c64d678713fced6f2261ce7d398b4351de5.zip |
spi: loopback-test: fix potential integer overflow on multiple
A multiplication of 8U * xfer-len with the type of a 32 bit unsigned int
is evaluated using 32 bit arithmetic and then used in a context that
expects an expression of type unsigned long long (64 bits). Avoid any
potential overflow by casting BITS_PER_BYTE to unsigned long long.
Detected by CoverityScan, CID#1419691 ("Unintentional integer overflow")
Fixes: ea9936f324356 ("spi: loopback-test: add elapsed time check")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions