]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: fix IFF_TX_SKB_NO_LINEAR definition
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Jun 2022 13:32:32 +0000 (16:32 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Jun 2022 23:45:40 +0000 (16:45 -0700)
The "1<<31" shift has a sign extension bug so IFF_TX_SKB_NO_LINEAR is
0xffffffff80000000 instead of 0x0000000080000000.

Fixes: b99afc34b7ee ("net: Add priv_flags for allow tx skb without linear")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Link: https://lore.kernel.org/r/YrRrcGttfEVnf85Q@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h

index f615a66c89e98b5d58e1b23d6674fa142106fb6e..2563d30736e9a21d53a1b73de820cf87ef1f4501 100644 (file)
@@ -1671,7 +1671,7 @@ enum netdev_priv_flags {
        IFF_FAILOVER_SLAVE              = 1<<28,
        IFF_L3MDEV_RX_HANDLER           = 1<<29,
        IFF_LIVE_RENAME_OK              = 1<<30,
-       IFF_TX_SKB_NO_LINEAR            = 1<<31,
+       IFF_TX_SKB_NO_LINEAR            = BIT_ULL(31),
        IFF_CHANGE_PROTO_DOWN           = BIT_ULL(32),
 };