Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118330
b: refs/heads/master
c: e83603f
h: refs/heads/master
v: v3
  • Loading branch information
Chunbo Luo authored and Jeff Garzik committed Oct 31, 2008
1 parent 21533af commit fe95d56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: dc5596d920b504d263c7ca38bd76326179b13dee
refs/heads/master: e83603fd4ace0bc8e2585cf9d450bb1dc80db448
9 changes: 4 additions & 5 deletions trunk/drivers/net/amd8111e.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,10 +644,6 @@ This function frees the transmiter and receiver descriptor rings.
*/
static void amd8111e_free_ring(struct amd8111e_priv* lp)
{

/* Free transmit and receive skbs */
amd8111e_free_skbs(lp->amd8111e_net_dev);

/* Free transmit and receive descriptor rings */
if(lp->rx_ring){
pci_free_consistent(lp->pci_dev,
Expand Down Expand Up @@ -1233,7 +1229,9 @@ static int amd8111e_close(struct net_device * dev)

amd8111e_disable_interrupt(lp);
amd8111e_stop_chip(lp);
amd8111e_free_ring(lp);

/* Free transmit and receive skbs */
amd8111e_free_skbs(lp->amd8111e_net_dev);

netif_carrier_off(lp->amd8111e_net_dev);

Expand All @@ -1243,6 +1241,7 @@ static int amd8111e_close(struct net_device * dev)

spin_unlock_irq(&lp->lock);
free_irq(dev->irq, dev);
amd8111e_free_ring(lp);

/* Update the statistics before closing */
amd8111e_get_stats(dev);
Expand Down

0 comments on commit fe95d56

Please sign in to comment.