diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-05-07 06:12:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 16:39:27 +0200 |
commit | edea5845781c3a87a577755c22eb1f0851fbf944 (patch) | |
tree | c0036754be9598f11a3bf53f5ca214c72ba2dae8 | |
parent | e1000: Replace e1000_free_frag with skb_free_frag (diff) | |
download | linux-edea5845781c3a87a577755c22eb1f0851fbf944.tar.xz linux-edea5845781c3a87a577755c22eb1f0851fbf944.zip |
hisilicon: Replace put_page(virt_to_head_page()) with skb_free_frag()
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hip04_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]) |