aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pasemi_mac.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-10-02 17:25:14 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:54:22 -0400
commit18eec695427ce1258fb5dad0ac180fa4d6f64af7 (patch)
tree36cd3b0ba6748e367495481246f4d7e3f6596ec7 /drivers/net/pasemi_mac.c
parent69c29d89185dc1de7224f5f98588ddc061f1fad2 (diff)
pasemi_mac: fix bug in receive buffer dma mapping
pasemi_mac: fix bug in receive buffer dma mapping skb->len isn't actually set to the size of the allocated skb, so don't try to use it when figuring out how much to map. (This hasn't surfaced as a real bug because we effectively disable translation for the interface, but it still needs fixing for the future) Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/pasemi_mac.c')
-rw-r--r--drivers/net/pasemi_mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c
index b297a67d2fbe..b2861e0df86c 100644
--- a/drivers/net/pasemi_mac.c
+++ b/drivers/net/pasemi_mac.c
@@ -396,7 +396,7 @@ static void pasemi_mac_replenish_rx_ring(struct net_device *dev, int limit)
396 if (unlikely(!skb)) 396 if (unlikely(!skb))
397 break; 397 break;
398 398
399 dma = pci_map_single(mac->dma_pdev, skb->data, skb->len, 399 dma = pci_map_single(mac->dma_pdev, skb->data, BUF_SIZE,
400 PCI_DMA_FROMDEVICE); 400 PCI_DMA_FROMDEVICE);
401 401
402 if (unlikely(dma_mapping_error(dma))) { 402 if (unlikely(dma_mapping_error(dma))) {