]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: fix return value check in __lb_other_process()
authorYunjian Wang <wangyunjian@huawei.com>
Sat, 26 Dec 2020 08:10:05 +0000 (16:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Dec 2020 22:57:35 +0000 (14:57 -0800)
commit55791e3a922018cdeacd0e99903edfd39ff83580
treeedf049211280af9e8fb3b40edbad9e0ef1de46f3
parent912c94bd8a1bb566646b720f13aa9770a47241ee
net: hns: fix return value check in __lb_other_process()

The function skb_copy() could return NULL, the return value
need to be checked.

Fixes: 5fda5763a87e ("net: add Hisilicon Network Subsystem basic ethernet support")
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c