mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
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)
|
||||
{
|
||||
if (likely(pp->frag_size <= PAGE_SIZE))
|
||||
put_page(virt_to_head_page(data));
|
||||
skb_free_frag(data);
|
||||
else
|
||||
kfree(data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user