summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSean Wang <sean.wang@mediatek.com>2016-09-01 02:47:29 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-09-01 03:53:47 (GMT)
commit1b43079906367d4d6e1ad00f04fff525a32e26c4 (patch)
treecc2e86b2f69fccd35ad65adeccc5e1b262d4f723 /drivers
parent549e5495467ac2a76489f1304e2b4a7ad85e1644 (diff)
downloadlinux-1b43079906367d4d6e1ad00f04fff525a32e26c4.tar.xz
net: ethernet: mediatek: fix API usage with skb_free_frag
use skb_free_frag() instead of legacy put_page() Signed-off-by: Sean Wang <sean.wang@mediatek.com> Acked-by: John Crispin <john@phrozen.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mediatek/mtk_eth_soc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index a5dcf57..c9e25a7 100644
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -870,7 +870,7 @@ static int mtk_poll_rx(struct napi_struct *napi, int budget,
/* receive data */
skb = build_skb(data, ring->frag_size);
if (unlikely(!skb)) {
- put_page(virt_to_head_page(new_data));
+ skb_free_frag(new_data);
netdev->stats.rx_dropped++;
goto release_desc;
}