Commit 9ad63641 authored by Haibin Lu's avatar Haibin Lu Committed by Jie Liu
Browse files

UNIC: Add the processing of the return value of ubl_rmv_sw_ctype.

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8GIXF


CVE: NA

-----------------------------------------------------------

After sw_ctype fails to be removed, the xmit process is
terminated.

Signed-off-by: default avatarHaibin Lu <luhaibin10@hisilicon.com>
parent b97fc7eb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2584,7 +2584,9 @@ netdev_tx_t hns3_nic_net_xmit(struct sk_buff *skb, struct net_device *netdev)
	}
#ifdef CONFIG_HNS3_UBL
	if (hns3_ubl_supported(hns3_get_handle(netdev))) {
		ubl_rmv_sw_ctype(skb);
		if (!ubl_rmv_sw_ctype(skb))
			goto out_err_tx_ok;

		hns3_unic_set_default_cc(skb);
	}
#endif