summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@redhat.com>2015-05-06 21:12:25 -0700
committerDavid S. Miller <davem@davemloft.net>2015-05-12 10:39:27 -0400
commitedea5845781c3a87a577755c22eb1f0851fbf944 (patch)
treec0036754be9598f11a3bf53f5ca214c72ba2dae8 /drivers/net/ethernet/hisilicon
parent6bf93ba89ea22bec5f9d88bf458a230de59d141e (diff)
downloadblackbird-op-linux-edea5845781c3a87a577755c22eb1f0851fbf944.tar.gz
blackbird-op-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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon')
-rw-r--r--drivers/net/ethernet/hisilicon/hip04_eth.c2
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])
OpenPOWER on IntegriCloud