diff options
author | Colin Ian King | 2019-06-17 18:12:49 +0200 |
---|---|---|
committer | David S. Miller | 2019-06-19 03:00:40 +0200 |
commit | 9476274093a0e79b905f4cd6cf6d149f65e02c17 (patch) | |
tree | 85219d8c26c8286bf2fcaa0f504b795fb1b82817 /net | |
parent | Merge branch 'net-fix-quite-a-few-dst_cache-crashes-reported-by-syzbot' (diff) | |
download | kernel-qcow2-linux-9476274093a0e79b905f4cd6cf6d149f65e02c17.tar.gz kernel-qcow2-linux-9476274093a0e79b905f4cd6cf6d149f65e02c17.tar.xz kernel-qcow2-linux-9476274093a0e79b905f4cd6cf6d149f65e02c17.zip |
net: lio_core: fix potential sign-extension overflow on large shift
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions