Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184311
b: refs/heads/master
c: 61e800c
h: refs/heads/master
i:
  184309: 4d1c090
  184307: 73394cd
  184303: 9f14555
v: v3
  • Loading branch information
Matt Carlson authored and David S. Miller committed Feb 18, 2010
1 parent 715009b commit 7dd20b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 99405162598176e830d17ae6d4f3d9e070ad900c
refs/heads/master: 61e800cf949926b3d463ca3cf3025d964872774b
9 changes: 7 additions & 2 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -4659,11 +4659,16 @@ static int tg3_rx(struct tg3_napi *tnapi, int budget)
if (skb_size < 0)
goto drop_it;

ri->skb = NULL;

pci_unmap_single(tp->pdev, dma_addr, skb_size,
PCI_DMA_FROMDEVICE);

/* Ensure that the update to the skb happens
* after the usage of the old DMA mapping.
*/
smp_wmb();

ri->skb = NULL;

skb_put(skb, len);
} else {
struct sk_buff *copy_skb;
Expand Down

0 comments on commit 7dd20b4

Please sign in to comment.