diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-01-04 20:07:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-04 20:07:09 -0500 |
commit | 4055c7d495f2502718bbbea871e6504ae95add14 (patch) | |
tree | 78a57e8f005fd828fc976fc7f2f57a6844a62c6f /drivers | |
parent | c907a35acf0e964dfd0753519b3dc7689727e175 (diff) |
qlge: bugfix: Add missing pci_unmap_page call in receive path.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index c6ab6a493e70..9ceedfc4b56a 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -1308,6 +1308,11 @@ static struct sk_buff *ql_build_rx_skb(struct ql_adapter *qdev, | |||
1308 | "No skb available, drop the packet.\n"); | 1308 | "No skb available, drop the packet.\n"); |
1309 | return NULL; | 1309 | return NULL; |
1310 | } | 1310 | } |
1311 | pci_unmap_page(qdev->pdev, | ||
1312 | pci_unmap_addr(lbq_desc, | ||
1313 | mapaddr), | ||
1314 | pci_unmap_len(lbq_desc, maplen), | ||
1315 | PCI_DMA_FROMDEVICE); | ||
1311 | skb_reserve(skb, NET_IP_ALIGN); | 1316 | skb_reserve(skb, NET_IP_ALIGN); |
1312 | QPRINTK(qdev, RX_STATUS, DEBUG, | 1317 | QPRINTK(qdev, RX_STATUS, DEBUG, |
1313 | "%d bytes of headers and data in large. Chain page to new skb and pull tail.\n", length); | 1318 | "%d bytes of headers and data in large. Chain page to new skb and pull tail.\n", length); |