Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103492
b: refs/heads/master
c: c219934
h: refs/heads/master
v: v3
  • Loading branch information
Jesse Brandeburg authored and Jeff Garzik committed Jul 11, 2008
1 parent 3a52233 commit c88661e
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 9e7bd330702bd8d2a87bf8fee027e90c6c90a401
refs/heads/master: c21993401479635025a8053aff1f5cfdbfee5fd9
8 changes: 5 additions & 3 deletions trunk/drivers/net/ixgb/ixgb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,10 @@ ixgb_unmap_and_free_tx_resource(struct ixgb_adapter *adapter,
pci_unmap_page(pdev, buffer_info->dma, buffer_info->length,
PCI_DMA_TODEVICE);

/* okay to call kfree_skb here instead of kfree_skb_any because
* this is never called in interrupt context */
if (buffer_info->skb)
dev_kfree_skb_any(buffer_info->skb);
dev_kfree_skb(buffer_info->skb);

buffer_info->skb = NULL;
buffer_info->dma = 0;
Expand Down Expand Up @@ -1447,7 +1449,7 @@ ixgb_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
}

if (skb->len <= 0) {
dev_kfree_skb_any(skb);
dev_kfree_skb(skb);
return 0;
}

Expand All @@ -1464,7 +1466,7 @@ ixgb_xmit_frame(struct sk_buff *skb, struct net_device *netdev)

tso = ixgb_tso(adapter, skb);
if (tso < 0) {
dev_kfree_skb_any(skb);
dev_kfree_skb(skb);
return NETDEV_TX_OK;
}

Expand Down

0 comments on commit c88661e

Please sign in to comment.