linux-stable/drivers/net/ethernet/hisilicon
Yunsheng Lin 534b622919 net: hns3: check the return of skb_checksum_help()
commit 9bb5a49542 upstream.

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: 76ad4f0ee747("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Fixes: 3db084d28dc0("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-06-03 09:00:51 +02:00
..
hns net: hisilicon: hns: fix error return code of hns_nic_clear_all_rx_fetch() 2021-03-30 14:31:49 +02:00
hns3 net: hns3: check the return of skb_checksum_help() 2021-06-03 09:00:51 +02:00
hip04_eth.c hisilicon: let core reject the unsupported coalescing parameters 2020-03-05 12:12:35 -08:00
hisi_femac.c net: convert suitable drivers to use phy_do_ioctl_running 2020-01-23 10:49:30 +01:00
hix5hd2_gmac.c net: hix5hd2_gmac: Remove unneeded cast from memory allocation 2020-07-24 17:28:51 -07:00
hns_mdio.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile