ramips: free allocated skbs in ramips_cleanup_dma
SVN-Revision: 18171
This commit is contained in:
parent
82cc25d5f0
commit
941c1dae2c
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,11 @@ static void
|
||||||
ramips_cleanup_dma(struct net_device *dev)
|
ramips_cleanup_dma(struct net_device *dev)
|
||||||
{
|
{
|
||||||
struct raeth_priv *priv = netdev_priv(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),
|
dma_free_coherent(NULL, NUM_RX_DESC * sizeof(struct ramips_rx_dma),
|
||||||
priv->rx, priv->phy_rx);
|
priv->rx, priv->phy_rx);
|
||||||
|
|
Loading…
Reference in a new issue