summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--target/linux/ramips/files/drivers/net/ramips.c5
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 c9eecc224..e44e6b654 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,