diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-05-07 07:12:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 17:39:27 +0300 |
commit | edea5845781c3a87a577755c22eb1f0851fbf944 (patch) | |
tree | c0036754be9598f11a3bf53f5ca214c72ba2dae8 /drivers/net/ethernet/hisilicon/hip04_eth.c | |
parent | 6bf93ba89ea22bec5f9d88bf458a230de59d141e (diff) | |
download | linux-edea5845781c3a87a577755c22eb1f0851fbf944.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hip04_eth.c')
-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]) |