ramips: raeth: unmap rx DMA address in ramips_cleanup_dma

SVN-Revision: 30446
This commit is contained in:
Gabor Juhos 2012-02-11 15:12:04 +00:00
parent 7bd7ddcf4e
commit 2d055f130e

View File

@ -128,8 +128,11 @@ ramips_cleanup_dma(struct raeth_priv *re)
int i;
for (i = 0; i < NUM_RX_DESC; i++)
if (re->rx_skb[i])
if (re->rx_skb[i]) {
dma_unmap_single(NULL, re->rx_dma[i], MAX_RX_LENGTH,
DMA_FROM_DEVICE);
dev_kfree_skb_any(re->rx_skb[i]);
}
if (re->rx)
dma_free_coherent(NULL,