summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq_performance.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-06-17 17:12:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-14 08:11:14 +0200
commit37232abb6ea3a7a132692eab07bea5a19a729756 (patch)
treee87d85e9a159fd23006e515ceb881179b7122aae /drivers/cpufreq/cpufreq_performance.c
parent740b2ac495187f33e7ad7c216382ef171150d358 (diff)
downloadlinux-stable-37232abb6ea3a7a132692eab07bea5a19a729756.tar.gz
linux-stable-37232abb6ea3a7a132692eab07bea5a19a729756.tar.bz2
linux-stable-37232abb6ea3a7a132692eab07bea5a19a729756.zip
net: lio_core: fix potential sign-extension overflow on large shift
[ Upstream commit 9476274093a0e79b905f4cd6cf6d149f65e02c17 ] Left shifting the signed int value 1 by 31 bits has undefined behaviour and the shift amount oq_no can be as much as 63. Fix this by using BIT_ULL(oq_no) instead. Addresses-Coverity: ("Bad shift operation") Fixes: f21fb3ed364b ("Add support of Cavium Liquidio ethernet adapters") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/cpufreq/cpufreq_performance.c')
0 files changed, 0 insertions, 0 deletions