summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtw88/phy.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-05-01 17:19:45 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-05-02 17:58:15 +0300
commitb85bd9a14c4b2722dc8764acdcce9b503e638760 (patch)
treef831ee01d0382cbf4f4c37ecc2d122bac74fa87e /drivers/net/wireless/realtek/rtw88/phy.c
parent5a489b99ecbc79ff83513f25a8f0d56ca6513cac (diff)
downloadlinux-b85bd9a14c4b2722dc8764acdcce9b503e638760.tar.xz
rtw88: fix shift of more than 32 bits of a integer
Currently the shift of an integer value more than 32 bits can occur when nss is more than 32. Fix this by making the integer constants unsigned long longs before shifting and bit-wise or'ing with the u64 ra_mask to avoid the undefined shift behaviour. Addresses-Coverity: ("Bad shift operation") Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/phy.c')
0 files changed, 0 insertions, 0 deletions