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

bnx2x, tg3: Replace put_page(virt_to_head_page()) with 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 edea5845
...@@ -662,7 +662,7 @@ static int bnx2x_fill_frag_skb(struct bnx2x *bp, struct bnx2x_fastpath *fp, ...@@ -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) static void bnx2x_frag_free(const struct bnx2x_fastpath *fp, void *data)
{ {
if (fp->rx_frag_size) if (fp->rx_frag_size)
put_page(virt_to_head_page(data)); skb_free_frag(data);
else else
kfree(data); kfree(data);
} }
......
...@@ -6618,7 +6618,7 @@ static void tg3_tx(struct tg3_napi *tnapi) ...@@ -6618,7 +6618,7 @@ static void tg3_tx(struct tg3_napi *tnapi)
static void tg3_frag_free(bool is_frag, void *data) static void tg3_frag_free(bool is_frag, void *data)
{ {
if (is_frag) if (is_frag)
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