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>
This commit is contained in:
parent
181edb2bfa
commit
7d525c4edf
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user