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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:18:12 +0000 (20:18 +0100)
commitcd63471a41849a796bb11cac890db0836dcedcea
tree6b79bdd3b85a5747aeeb62325b77e559c39992cc
parent7a20969b874e182f1e2270077ce280335b4aa5e3
net: hns: fix return value check in __lb_other_process()

[ Upstream commit 5ede3ada3da7f050519112b81badc058190b9f9f ]

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

Fixes: b5996f11ea54 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c