Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111601
b: refs/heads/master
c: 638266f
h: refs/heads/master
i:
  111599: 24afc36
v: v3
  • Loading branch information
David S. Miller committed Sep 11, 2008
1 parent 5148283 commit a737630
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 90079ce89aa65e17f36ac2b09110720c51d874f4
refs/heads/master: 638266f7e879e34de4a4635049c15f5a58505e75
3 changes: 3 additions & 0 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -4631,6 +4631,9 @@ static int tigon3_dma_hwbug_workaround(struct tg3 *tp, struct sk_buff *skb,
* Drop the packet if it does.
*/
if (ret || tg3_4g_overflow_test(new_addr, new_skb->len)) {
if (!ret)
skb_dma_unmap(&tp->pdev->dev, new_skb,
DMA_TO_DEVICE);
ret = -1;
dev_kfree_skb(new_skb);
new_skb = NULL;
Expand Down

0 comments on commit a737630

Please sign in to comment.