2016-04-27 08:58:15 +00:00
|
|
|
From 7f0fb178cd514ea88aea611b0c92829be50bc8f6 Mon Sep 17 00:00:00 2001
|
2016-04-26 11:43:38 +00:00
|
|
|
From: John Crispin <blogic@openwrt.org>
|
|
|
|
Date: Sat, 23 Apr 2016 09:25:00 +0200
|
2016-04-27 08:58:15 +00:00
|
|
|
Subject: [PATCH 85/90] net-next: mediatek: invalid buffer lookup in
|
2016-04-26 11:43:38 +00:00
|
|
|
mtk_tx_map()
|
|
|
|
|
|
|
|
The lookup of the tx_buffer in the error path inside mtk_tx_map() uses the
|
|
|
|
wrong descriptor pointer. This looks like a copy & paste error.
|
|
|
|
|
|
|
|
Signed-off-by: John Crispin <blogic@openwrt.org>
|
|
|
|
---
|
|
|
|
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
2016-04-27 08:58:15 +00:00
|
|
|
index 06b9094..63e1da4 100644
|
2016-04-26 11:43:38 +00:00
|
|
|
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
|
|
|
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
|
2016-04-27 08:58:15 +00:00
|
|
|
@@ -671,7 +671,7 @@ static int mtk_tx_map(struct sk_buff *skb, struct net_device *dev,
|
2016-04-26 11:43:38 +00:00
|
|
|
|
|
|
|
err_dma:
|
|
|
|
do {
|
|
|
|
- tx_buf = mtk_desc_to_tx_buf(ring, txd);
|
|
|
|
+ tx_buf = mtk_desc_to_tx_buf(ring, itxd);
|
|
|
|
|
|
|
|
/* unmap dma */
|
|
|
|
mtk_tx_unmap(&dev->dev, tx_buf);
|
|
|
|
--
|
|
|
|
1.7.10.4
|
|
|
|
|