Unverified Commit 09d7277a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

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

parents 81e07095 a407aa13
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);
	}