mvneta: 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
7d525c4edf
commit
13dc0d2bc6
|
@ -1359,7 +1359,7 @@ static void *mvneta_frag_alloc(const struct mvneta_port *pp)
|
||||||
static void mvneta_frag_free(const struct mvneta_port *pp, void *data)
|
static void mvneta_frag_free(const struct mvneta_port *pp, void *data)
|
||||||
{
|
{
|
||||||
if (likely(pp->frag_size <= PAGE_SIZE))
|
if (likely(pp->frag_size <= PAGE_SIZE))
|
||||||
put_page(virt_to_head_page(data));
|
skb_free_frag(data);
|
||||||
else
|
else
|
||||||
kfree(data);
|
kfree(data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue