Commit 13dc0d2b authored by Alexander Duyck's avatar Alexander Duyck Committed by David S. Miller

mvneta: 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 7d525c4e
...@@ -1359,7 +1359,7 @@ static void *mvneta_frag_alloc(const struct mvneta_port *pp) ...@@ -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);
} }
......
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