Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377136
b: refs/heads/master
c: c9bfbb3
h: refs/heads/master
v: v3
  • Loading branch information
Neil Horman authored and David S. Miller committed Jun 14, 2013
1 parent 90a15d0 commit e628c6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd019897358b815f7828dab90b51d51df4d3658d
refs/heads/master: c9bfbb31af7c8428267b34eb9706a621ac219a28
6 changes: 6 additions & 0 deletions trunk/drivers/net/ethernet/dec/tulip/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ int tulip_refill_rx(struct net_device *dev)

mapping = pci_map_single(tp->pdev, skb->data, PKT_BUF_SZ,
PCI_DMA_FROMDEVICE);
if (dma_mapping_error(&tp->pdev->dev, mapping)) {
dev_kfree_skb(skb);
tp->rx_buffers[entry].skb = NULL;
break;
}

tp->rx_buffers[entry].mapping = mapping;

tp->rx_ring[entry].buffer1 = cpu_to_le32(mapping);
Expand Down

0 comments on commit e628c6b

Please sign in to comment.