summaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-05-08 13:57:32 +0100
committerJohannes Berg <johannes.berg@intel.com>2018-05-08 15:02:03 +0200
commit57c6cb81717f957fb741f2e4c79bd0e2f4f55910 (patch)
treed83d668ee4b94418145a9c92855f78a916f1e718 /net/wireless/nl80211.c
parent2fe4a29a452a68ffa8a501000d0ef8095c242eba (diff)
downloadop-kernel-dev-57c6cb81717f957fb741f2e4c79bd0e2f4f55910.zip
op-kernel-dev-57c6cb81717f957fb741f2e4c79bd0e2f4f55910.tar.gz
mac80211: ethtool: avoid 32 bit multiplication overflow
The multiplication of 100000 * cfg80211_calculate_bitrate() is a 32 bit operation and can overflow if cfg80211_calculate_bitrate is greater than 42949. Although I don't believe this is occurring at present, it would be safer to avoid the potential overflow by making the constant 100000 an ULL to ensure a 64 multiplication occurs. Detected by CoverityScan, CID#1468643 ("Unintentional integer overflow") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud