mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
bnx2x, tg3: Replace put_page(virt_to_head_page()) with 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
edea584578
commit
e51423d995
@ -662,7 +662,7 @@ static int bnx2x_fill_frag_skb(struct bnx2x *bp, struct bnx2x_fastpath *fp,
|
||||
static void bnx2x_frag_free(const struct bnx2x_fastpath *fp, void *data)
|
||||
{
|
||||
if (fp->rx_frag_size)
|
||||
put_page(virt_to_head_page(data));
|
||||
skb_free_frag(data);
|
||||
else
|
||||
kfree(data);
|
||||
}
|
||||
|
@ -6618,7 +6618,7 @@ static void tg3_tx(struct tg3_napi *tnapi)
|
||||
static void tg3_frag_free(bool is_frag, void *data)
|
||||
{
|
||||
if (is_frag)
|
||||
put_page(virt_to_head_page(data));
|
||||
skb_free_frag(data);
|
||||
else
|
||||
kfree(data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user