Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e51423d9 authored by Alexander Duyck's avatar Alexander Duyck Committed by David S. Miller
Browse files

bnx2x, tg3: Replace put_page(virt_to_head_page()) with skb_free_frag()

parent edea5845
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}
+1 −1
Original line number Diff line number Diff line
@@ -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);
}