Commit 7d525c4e authored by Alexander Duyck's avatar Alexander Duyck Committed by David S. Miller

netcp: Replace put_page(virt_to_head_page(ptr)) w/ skb_free_frag

Signed-off-by: default avatarAlexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 181edb2b
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment