Skip to contentSkip to conversation

gianfar: Fix a bug where the pointer never moves for dma_unmap...

PATCH Applied Andy Fleming 2 participants 2 messages May 7, 2008 – May 13, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gianfar: Fix a bug where the pointer never moves for dma_unmap...

The loop that unmaps all of the TX Buffer Descriptors never actually moves the txbd pointer, so we were just repeatedly unmapping the first one.

---
 drivers/net/gianfar.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/gianfar.c +2 -0
index 6f22f06..25bdd08 100644
@@ -635,6 +635,8 @@ static void free_skb_resources(struct gfar_private *priv)
 			dev_kfree_skb_any(priv->tx_skbuff[i]);
 			priv->tx_skbuff[i] = NULL;
 		}
+
+		txbdp++;
 	}
 
 	kfree(priv->tx_skbuff);
Signature · 1 line
1.5.4.GIT
Applied
#1 lore raw
Quoted 6 lines · Andy Fleming

The loop that unmaps all of the TX Buffer Descriptors never actually moves the txbd pointer, so we were just repeatedly unmapping the first one.

---
 drivers/net/gianfar.c |    2 ++

applied