]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: check the return of skb_checksum_help()
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 18 May 2021 11:36:03 +0000 (19:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2021 20:41:04 +0000 (13:41 -0700)
commitc06d53e82e231731a537753f8aa223348c6d49ba
tree0c9a7851fc4ca61afdaeb66f848775a7f631b14f
parent20a726376e53d39ec5c34322e350788240adf095
net: hns3: check the return of skb_checksum_help()

Currently skb_checksum_help()'s return is ignored, but it may
return error when it fails to allocate memory when linearizing.

So adds checking for the return of skb_checksum_help().

Fixes: 6e2406330b28("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Fixes: 978a6d06d2e3("net: hns3: Fix for vxlan tx checksum bug")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c