* [PATCH 1/5] qlge: bugfux: Add missing pci_mapping_err checking.
2008-12-24 18:18 [PATCH 0/5] qlge: Fixes for powerpc platform Ron Mercer
@ 2008-12-24 18:21 ` Ron Mercer
0 siblings, 0 replies; 2+ messages in thread
From: Ron Mercer @ 2008-12-24 18:21 UTC (permalink / raw)
To: netdev; +Cc: ron.mercer
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
---
drivers/net/qlge/qlge_main.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
mode change 100644 => 100755 drivers/net/qlge/qlge_main.c
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
old mode 100644
new mode 100755
index 0214708..56c7531
--- 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)
sbq_desc->p.skb->data,
rx_ring->sbq_buf_size /
2, PCI_DMA_FROMDEVICE);
+ if (pci_dma_mapping_error(qdev->pdev, map)) {
+ QPRINTK(qdev, IFUP, ERR, "PCI mapping failed.\n");
+ rx_ring->sbq_clean_idx = clean_idx;
+ return;
+ }
pci_unmap_addr_set(sbq_desc, mapaddr, map);
pci_unmap_len_set(sbq_desc, maplen,
rx_ring->sbq_buf_size / 2);
--
1.6.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/5] qlge: bugfux: Add missing pci_mapping_err checking.
[not found] ` <1230055344-733-2-git-send-email-ron.mercer@qlogic.com>
@ 2008-12-26 0:18 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-12-26 0:18 UTC (permalink / raw)
To: ron.mercer; +Cc: jeff, netdev, linux-driver
Please stop "fuxing" bugs.
Sorry, couldn't resist :-)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-26 0:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1230055344-733-1-git-send-email-ron.mercer@qlogic.com>
[not found] ` <1230055344-733-2-git-send-email-ron.mercer@qlogic.com>
2008-12-26 0:18 ` [PATCH 1/5] qlge: bugfux: Add missing pci_mapping_err checking David Miller
2008-12-24 18:18 [PATCH 0/5] qlge: Fixes for powerpc platform Ron Mercer
2008-12-24 18:21 ` [PATCH 1/5] qlge: bugfux: Add missing pci_mapping_err checking Ron Mercer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).