mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 07:48:59 +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:
parent
606588b4e9
commit
9b2ee01ff5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user