projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
549e549
)
net: ethernet: mediatek: fix API usage with skb_free_frag
author
Sean Wang
<sean.wang@mediatek.com>
Thu, 1 Sep 2016 02:47:29 +0000
(10:47 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 1 Sep 2016 03:53:47 +0000
(20:53 -0700)
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>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index
a5dcf57
..
c9e25a7
100644
(file)
--- 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;
}