Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37941
b: refs/heads/master
c: d4b0a4c
h: refs/heads/master
i:
  37939: 9f72850
v: v3
  • Loading branch information
Olof Johansson authored and Jeff Garzik committed Sep 27, 2006
1 parent 1608ff6 commit 1e3b79a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c73a29da23c9236f868faecf85cb5401893d7c42
refs/heads/master: d4b0a4c19ace3021235a33658c520ab0da80dfb1
6 changes: 3 additions & 3 deletions trunk/drivers/net/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ spider_net_init_chain(struct spider_net_card *card,
SPIDER_NET_DESCR_SIZE,
direction);

if (buf == DMA_ERROR_CODE)
if (pci_dma_mapping_error(buf))
goto iommu_error;

descr->bus_addr = buf;
Expand Down Expand Up @@ -420,7 +420,7 @@ spider_net_prepare_rx_descr(struct spider_net_card *card,
buf = pci_map_single(card->pdev, descr->skb->data,
SPIDER_NET_MAX_FRAME, PCI_DMA_FROMDEVICE);
descr->buf_addr = buf;
if (buf == DMA_ERROR_CODE) {
if (pci_dma_mapping_error(buf)) {
dev_kfree_skb_any(descr->skb);
if (netif_msg_rx_err(card) && net_ratelimit())
pr_err("Could not iommu-map rx buffer\n");
Expand Down Expand Up @@ -649,7 +649,7 @@ spider_net_prepare_tx_descr(struct spider_net_card *card,
dma_addr_t buf;

buf = pci_map_single(card->pdev, skb->data, skb->len, PCI_DMA_TODEVICE);
if (buf == DMA_ERROR_CODE) {
if (pci_dma_mapping_error(buf)) {
if (netif_msg_tx_err(card) && net_ratelimit())
pr_err("could not iommu-map packet (%p, %i). "
"Dropping packet\n", skb->data, skb->len);
Expand Down

0 comments on commit 1e3b79a

Please sign in to comment.