Unverified Commit 1b17e412 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12789 net: hisilicon: Fix potential use-after-free in hix5hd2_rx()

parents 76317ae0 b78bdac4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -550,7 +550,7 @@ static int hix5hd2_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 = dma_ring_incr(pos, RX_DESC_NUM);
	}