netcp: Replace put_page(virt_to_head_page(ptr)) w/ skb_free_frag
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Thu, 7 May 2015 04:12:08 +0000 (21:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2015 14:39:26 +0000 (10:39 -0400)
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c

index 43efc3a0cda58b26cededf117180f6782fbca76a..0a28c07361cf0621997ad66f15c57a6d55f9e7e3 100644 (file)
@@ -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);
 }