diff options
author | Colin Ian King <[email protected]> | 2021-02-05 17:53:52 +0000 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2021-02-12 08:54:42 +0100 |
commit | 6194f7e6473be78acdc5d03edd116944bdbb2c4e (patch) | |
tree | b2b0fca5c713d41010dc26a4c7590160c4c1fd11 /lib/mpi/mpi-mod.c | |
parent | 10cb8e617560fc050a759a897a2dde07a5fe04cb (diff) |
mac80211: fix potential overflow when multiplying to u32 integers
The multiplication of the u32 variables tx_time and estimated_retx is
performed using a 32 bit multiplication and the result is stored in
a u64 result. This has a potential u32 overflow issue, so avoid this
by casting tx_time to a u64 to force a 64 bit multiply.
Addresses-Coverity: ("Unintentional integer overflow")
Fixes: 050ac52cbe1f ("mac80211: code for on-demand Hybrid Wireless Mesh Protocol")
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions