diff options
author | Alexander Duyck | 2015-05-07 06:12:08 +0200 |
---|---|---|
committer | David S. Miller | 2015-05-12 16:39:26 +0200 |
commit | 7d525c4edf10e3dc334347f39da74b53a18e21ca (patch) | |
tree | 38e49bc43bab3826b0d6e9a4c689f2262aa037df /drivers | |
parent | net: Add skb_free_frag to replace use of put_page in freeing skb->head (diff) | |
download | kernel-qcow2-linux-7d525c4edf10e3dc334347f39da74b53a18e21ca.tar.gz kernel-qcow2-linux-7d525c4edf10e3dc334347f39da74b53a18e21ca.tar.xz kernel-qcow2-linux-7d525c4edf10e3dc334347f39da74b53a18e21ca.zip |
netcp: Replace put_page(virt_to_head_page(ptr)) w/ 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')
-rw-r--r-- | drivers/net/ethernet/ti/netcp_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/netcp_core.c b/drivers/net/ethernet/ti/netcp_core.c index 43efc3a0cda5..0a28c07361cf 100644 --- a/drivers/net/ethernet/ti/netcp_core.c +++ b/drivers/net/ethernet/ti/netcp_core.c @@ -537,7 +537,7 @@ int netcp_unregister_rxhook(struct netcp_intf *netcp_priv, int order, static void netcp_frag_free(bool is_frag, void *ptr) { if (is_frag) - put_page(virt_to_head_page(ptr)); + skb_free_frag(ptr); else kfree(ptr); } |