]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3b89b511ea0c705cc418440e2abf9d692a556d84
tree79c2f67cb7f624b0a05bf4812026d3379765f018
parent8cc683833726912498130a0130fc3bd0d169ef59
net: fix IFF_TX_SKB_NO_LINEAR definition

The "1<<31" shift has a sign extension bug so IFF_TX_SKB_NO_LINEAR is
0xffffffff80000000 instead of 0x0000000080000000.

Fixes: c2ff53d8049f ("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