diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-04-11 21:43:15 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-14 10:52:40 +0200 |
commit | 4fa8634493253c3f8932410a65680f588c7b7e4a (patch) | |
tree | 896413d2c1081ee1adff574b60b5e1bdd64e7c67 /drivers/clk | |
parent | 545195b478a152fa854185a1ea63ed6d843d1239 (diff) |
bcache: Use 64-bit arithmetic instead of 32-bit
[ Upstream commit 62594f189e81caffa6a3bfa2fdb08eec2e347c76 ]
Cast multiple variables to (int64_t) in order to give the compiler
complete information about the proper arithmetic to use. Notice that
these variables are being used in contexts that expect expressions of
type int64_t (64 bit, signed). And currently, such expressions are
being evaluated using 32-bit arithmetic.
Fixes: d0cf9503e908 ("octeontx2-pf: ethtool fec mode support")
Addresses-Coverity-ID: 1501724 ("Unintentional integer overflow")
Addresses-Coverity-ID: 1501725 ("Unintentional integer overflow")
Addresses-Coverity-ID: 1501726 ("Unintentional integer overflow")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20210411134316.80274-7-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions