Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224531
b: refs/heads/master
c: 9b03b06
h: refs/heads/master
i:
  224529: 2cece16
  224527: 0361065
v: v3
  • Loading branch information
Szymon Janc authored and David S. Miller committed Nov 29, 2010
1 parent 0a7dfa2 commit c97ebfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: 78aea4fc67a7534d5f5bbb0419a2bcb50b0547c9
refs/heads/master: 9b03b06b65856f70564c53654d44053f3072379e
13 changes: 5 additions & 8 deletions trunk/drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,10 +1013,8 @@ static void free_rings(struct net_device *dev)
pci_free_consistent(np->pci_dev, sizeof(struct ring_desc_ex) * (np->rx_ring_size + np->tx_ring_size),
np->rx_ring.ex, np->ring_addr);
}
if (np->rx_skb)
kfree(np->rx_skb);
if (np->tx_skb)
kfree(np->tx_skb);
kfree(np->rx_skb);
kfree(np->tx_skb);
}

static int using_multi_irqs(struct net_device *dev)
Expand Down Expand Up @@ -4442,10 +4440,9 @@ static int nv_set_ringparam(struct net_device *dev, struct ethtool_ringparam* ri
pci_free_consistent(np->pci_dev, sizeof(struct ring_desc_ex) * (ring->rx_pending + ring->tx_pending),
rxtx_ring, ring_addr);
}
if (rx_skbuff)
kfree(rx_skbuff);
if (tx_skbuff)
kfree(tx_skbuff);

kfree(rx_skbuff);
kfree(tx_skbuff);
goto exit;
}

Expand Down

0 comments on commit c97ebfa

Please sign in to comment.