From: Alexander Duyck Date: Thu, 7 May 2015 04:12:14 +0000 (-0700) Subject: mvneta: Replace put_page(virt_to_head_page(ptr)) w/ skb_free_frag X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=13dc0d2bc66ffed3a27471415ff4c4cb974c3263;p=openwrt%2Fstaging%2Fblogic.git mvneta: Replace put_page(virt_to_head_page(ptr)) w/ skb_free_frag Signed-off-by: Alexander Duyck Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index ce5f7f9cff06..ecce8261ce3b 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); }