]> 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)
commit2864e674b408510b398f51f9e1fb8effddd13c4b
tree79c2f67cb7f624b0a05bf4812026d3379765f018
parentb7a706ca8e052a051e507d45d33e7af4757d7f9d
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: 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