diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-01-04 20:06:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-04 20:06:46 -0500 |
commit | c907a35acf0e964dfd0753519b3dc7689727e175 (patch) | |
tree | 196424b7e8f6d3999773db5cdac0e9285e033d29 /drivers/net | |
parent | 22692018b93f0782cda5a843cecfffda1854eb8d (diff) |
qlge: bugfix: Add missing pci_mapping_err checking.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-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 718a7bd0cd1a..c6ab6a493e70 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -963,6 +963,11 @@ static void ql_update_sbq(struct ql_adapter *qdev, struct rx_ring *rx_ring) | |||
963 | sbq_desc->p.skb->data, | 963 | sbq_desc->p.skb->data, |
964 | rx_ring->sbq_buf_size / | 964 | rx_ring->sbq_buf_size / |
965 | 2, PCI_DMA_FROMDEVICE); | 965 | 2, PCI_DMA_FROMDEVICE); |
966 | if (pci_dma_mapping_error(qdev->pdev, map)) { | ||
967 | QPRINTK(qdev, IFUP, ERR, "PCI mapping failed.\n"); | ||
968 | rx_ring->sbq_clean_idx = clean_idx; | ||
969 | return; | ||
970 | } | ||
966 | pci_unmap_addr_set(sbq_desc, mapaddr, map); | 971 | pci_unmap_addr_set(sbq_desc, mapaddr, map); |
967 | pci_unmap_len_set(sbq_desc, maplen, | 972 | pci_unmap_len_set(sbq_desc, maplen, |
968 | rx_ring->sbq_buf_size / 2); | 973 | rx_ring->sbq_buf_size / 2); |