hisilicon: Replace put_page(virt_to_head_page()) with skb_free_frag()
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Thu, 7 May 2015 04:12:25 +0000 (21:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2015 14:39:27 +0000 (10:39 -0400)
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hip04_eth.c

index 3b39fdddeb57140c2d00003a0c473a869f768252..d49bee38cd319a0a8c7afd2cad7f1cb1ac7f2ed3 100644 (file)
@@ -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])