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 | 03f6e838c1985ea22508ac47036760495b590538 (patch) | |
tree | f99803c070c557708de63a24face0f35bf57a2c4 /target | |
parent | edf1212d0f3a220d93278bc50280104ce4f1ac4b (diff) | |
download | master-187ad058-03f6e838c1985ea22508ac47036760495b590538.tar.gz master-187ad058-03f6e838c1985ea22508ac47036760495b590538.tar.bz2 master-187ad058-03f6e838c1985ea22508ac47036760495b590538.zip |
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
Diffstat (limited to 'target')
-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 c9eecc2240..e44e6b6540 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, |