qlge: bugfix: Add missing pci_unmap_page call in receive path.
authorRon Mercer <ron.mercer@qlogic.com>
Mon, 5 Jan 2009 01:07:09 +0000 (17:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jan 2009 01:07:09 +0000 (17:07 -0800)
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge_main.c

index c6ab6a493e708c9b95ff435ce8f2a1492a6338cc..9ceedfc4b56ac556e0ebf442176ab09c5cbdbd0e 100644 (file)
@@ -1308,6 +1308,11 @@ static struct sk_buff *ql_build_rx_skb(struct ql_adapter *qdev,
                                        "No skb available, drop the packet.\n");
                                return NULL;
                        }
+                       pci_unmap_page(qdev->pdev,
+                                      pci_unmap_addr(lbq_desc,
+                                                     mapaddr),
+                                      pci_unmap_len(lbq_desc, maplen),
+                                      PCI_DMA_FROMDEVICE);
                        skb_reserve(skb, NET_IP_ALIGN);
                        QPRINTK(qdev, RX_STATUS, DEBUG,
                                "%d bytes of headers and data in large. Chain page to new skb and pull tail.\n", length);