1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 01:43:08 +02:00

ramips: raeth: unmap rx DMA address in ramips_cleanup_dma

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30446 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-02-11 15:12:04 +00:00
parent 606588b4e9
commit 9b2ee01ff5

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,