diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-05-06 21:12:14 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-12 10:39:27 -0400 |
commit | 13dc0d2bc66ffed3a27471415ff4c4cb974c3263 (patch) | |
tree | da0ac549aba4065faa9c2eac2336478b1d3eeea0 /drivers/net/ethernet | |
parent | 7d525c4edf10e3dc334347f39da74b53a18e21ca (diff) | |
download | op-kernel-dev-13dc0d2bc66ffed3a27471415ff4c4cb974c3263.zip op-kernel-dev-13dc0d2bc66ffed3a27471415ff4c4cb974c3263.tar.gz |
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index ce5f7f9..ecce826 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -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); } |