diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-05-07 07:12:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 17:39:27 +0300 |
commit | e51423d9959df283c5af4ff13703f87e39d6e144 (patch) | |
tree | 1b67a0aa202e867b950b6ac2062df7faaa5c1d23 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | |
parent | edea5845781c3a87a577755c22eb1f0851fbf944 (diff) | |
download | linux-e51423d9959df283c5af4ff13703f87e39d6e144.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c index a8bb8f664d3d..b10d1744e5ae 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c @@ -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); } |