Commit:     18eec695427ce1258fb5dad0ac180fa4d6f64af7
Parent:     69c29d89185dc1de7224f5f98588ddc061f1fad2
Author:     Olof Johansson <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 2 16:25:14 2007 -0500
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:54:22 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
 drivers/net/pasemi_mac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c
index b297a67..b2861e0 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)
                if (unlikely(!skb))
-               dma = pci_map_single(mac->dma_pdev, skb->data, skb->len,
+               dma = pci_map_single(mac->dma_pdev, skb->data, BUF_SIZE,
                if (unlikely(dma_mapping_error(dma))) {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to