aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-10-25 12:58:11 +0100
committerDavid S. Miller <davem@davemloft.net>2019-10-29 10:47:52 -0700
commit92d72f1b8bbbd87220daa49cd1253ce72bb7553c (patch)
treea4601cc827c98da4fa4a41c40ac6c6f8016423f9 /drivers/net/ethernet/freescale
parentnet: aquantia: fix spelling mistake: tx_queus -> tx_queues (diff)
downloadlinux-dev-92d72f1b8bbbd87220daa49cd1253ce72bb7553c.tar.xz
linux-dev-92d72f1b8bbbd87220daa49cd1253ce72bb7553c.zip
net: aquantia: fix unintention integer overflow on left shift
Shifting the integer value 1 is evaluated using 32-bit arithmetic and then used in an expression that expects a 64-bit value, so there is potentially an integer overflow. Fix this by using the BIT_ULL macro to perform the shift and avoid the overflow. Addresses-Coverity: ("Unintentional integer overflow") Fixes: 04a1839950d9 ("net: aquantia: implement data PTP datapath") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
0 files changed, 0 insertions, 0 deletions