]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
3c59x: balance page maps and unmaps
authorNeil Horman <nhorman@tuxdriver.com>
Wed, 13 Jan 2016 17:43:53 +0000 (12:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jan 2016 19:55:18 +0000 (14:55 -0500)
debug kernel noticed a screw up in 3c59x.  skbs being mapped as page were being
unmapped as singles.  Easy fix.  Tested by myself

Signed-off-by: Neil Horman <nhorman@tuxdriver.com
CC: "David S. Miller" <davem@davemloft.net>
CC: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/3com/3c59x.c

index 1c5f3b273e6accb7d1e4f41611158eb9253d3d0d..4c3bc31067166dbfef3a21d8849011a4bd250f2a 100644 (file)
@@ -2460,7 +2460,7 @@ boomerang_interrupt(int irq, void *dev_id)
 #if DO_ZEROCOPY
                                        int i;
                                        for (i=0; i<=skb_shinfo(skb)->nr_frags; i++)
-                                                       pci_unmap_single(VORTEX_PCI(vp),
+                                                       pci_unmap_page(VORTEX_PCI(vp),
                                                                                         le32_to_cpu(vp->tx_ring[entry].frag[i].addr),
                                                                                         le32_to_cpu(vp->tx_ring[entry].frag[i].length)&0xFFF,
                                                                                         PCI_DMA_TODEVICE);