From: Alexander Duyck Date: Thu, 7 May 2015 04:12:25 +0000 (-0700) Subject: hisilicon: Replace put_page(virt_to_head_page()) with skb_free_frag() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=edea5845781c3a87a577755c22eb1f0851fbf944;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git hisilicon: Replace put_page(virt_to_head_page()) with skb_free_frag() Signed-off-by: Alexander Duyck Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hip04_eth.c b/drivers/net/ethernet/hisilicon/hip04_eth.c index 3b39fdddeb57..d49bee38cd31 100644 --- a/drivers/net/ethernet/hisilicon/hip04_eth.c +++ b/drivers/net/ethernet/hisilicon/hip04_eth.c @@ -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])