Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edea5845 authored by Alexander Duyck's avatar Alexander Duyck Committed by David S. Miller
Browse files

hisilicon: Replace put_page(virt_to_head_page()) with skb_free_frag()

parent 6bf93ba8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -798,7 +798,7 @@ static void hip04_free_ring(struct net_device *ndev, struct device *d)

	for (i = 0; i < RX_DESC_NUM; i++)
		if (priv->rx_buf[i])
			put_page(virt_to_head_page(priv->rx_buf[i]));
			skb_free_frag(priv->rx_buf[i]);

	for (i = 0; i < TX_DESC_NUM; i++)
		if (priv->tx_skb[i])