projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82cc25d
)
ramips: free allocated skbs in ramips_cleanup_dma
author
Gabor Juhos
<juhosg@openwrt.org>
Mon, 26 Oct 2009 17:17:37 +0000
(17:17 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Mon, 26 Oct 2009 17:17:37 +0000
(17:17 +0000)
SVN-Revision: 18171
target/linux/ramips/files/drivers/net/ramips.c
patch
|
blob
|
history
diff --git
a/target/linux/ramips/files/drivers/net/ramips.c
b/target/linux/ramips/files/drivers/net/ramips.c
index 30840965a671d7cff0a8169a07c44128c6b5b2e7..43ccdfc1f70101cad2a88392801b2f51d3a3b7ec 100644
(file)
--- a/
target/linux/ramips/files/drivers/net/ramips.c
+++ b/
target/linux/ramips/files/drivers/net/ramips.c
@@
-54,6
+54,11
@@
static void
ramips_cleanup_dma(struct net_device *dev)
{
struct raeth_priv *priv = netdev_priv(dev);
+ int i;
+
+ for (i = 0; i < NUM_RX_DESC; i++)
+ if (priv->rx_skb[i])
+ dev_kfree_skb_any(priv->rx_skb[i]);
dma_free_coherent(NULL, NUM_RX_DESC * sizeof(struct ramips_rx_dma),
priv->rx, priv->phy_rx);