mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
ramips: raeth: unmap rx DMA address in ramips_cleanup_dma
SVN-Revision: 30446
This commit is contained in:
parent
7bd7ddcf4e
commit
2d055f130e
@ -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