diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-02-11 15:12:04 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-02-11 15:12:04 +0000 |
commit | 2d055f130e02ff7ff53501b5c77705142a0a7904 (patch) | |
tree | bb603f6a9bcf96dee8330829b938ac44d935e826 | |
parent | 7bd7ddcf4e4b6d0abc6b921339d5701f77ce6928 (diff) | |
download | mtk-20170518-2d055f130e02ff7ff53501b5c77705142a0a7904.zip mtk-20170518-2d055f130e02ff7ff53501b5c77705142a0a7904.tar.gz mtk-20170518-2d055f130e02ff7ff53501b5c77705142a0a7904.tar.bz2 |
ramips: raeth: unmap rx DMA address in ramips_cleanup_dma
SVN-Revision: 30446
-rw-r--r-- | target/linux/ramips/files/drivers/net/ramips.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c index c9eecc2..e44e6b6 100644 --- a/target/linux/ramips/files/drivers/net/ramips.c +++ b/target/linux/ramips/files/drivers/net/ramips.c @@ -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, |