Unverified Commit 76317ae0 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12787 net: hisilicon: Fix potential use-after-free in hisi_femac_rx()

parents 96c769f6 0063a95c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ static int hisi_femac_rx(struct net_device *dev, int limit)
		skb->protocol = eth_type_trans(skb, dev);
		napi_gro_receive(&priv->napi, skb);
		dev->stats.rx_packets++;
		dev->stats.rx_bytes += skb->len;
		dev->stats.rx_bytes += len;
next:
		pos = (pos + 1) % rxq->num;
		if (rx_pkts_num >= limit)