]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mvneta: Replace put_page(virt_to_head_page(ptr)) w/ skb_free_frag
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Thu, 7 May 2015 04:12:14 +0000 (21:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2015 14:39:27 +0000 (10:39 -0400)
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c

index ce5f7f9cff060868db1ad0ba3bde378d65222793..ecce8261ce3b3ccdb37e0966ea35f8608a9a2af3 100644 (file)
@@ -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);
 }