提交 7356f4e4 编写于 作者: N Neil Horman 提交者: David S. Miller

3c59x: balance page maps and unmaps

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: NDavid S. Miller <davem@davemloft.net>
上级 3b780bed
...@@ -2460,7 +2460,7 @@ boomerang_interrupt(int irq, void *dev_id) ...@@ -2460,7 +2460,7 @@ boomerang_interrupt(int irq, void *dev_id)
#if DO_ZEROCOPY #if DO_ZEROCOPY
int i; int i;
for (i=0; i<=skb_shinfo(skb)->nr_frags; 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].addr),
le32_to_cpu(vp->tx_ring[entry].frag[i].length)&0xFFF, le32_to_cpu(vp->tx_ring[entry].frag[i].length)&0xFFF,
PCI_DMA_TODEVICE); PCI_DMA_TODEVICE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册