From: Andy Fleming Date: Wed, 7 May 2008 18:20:55 +0000 (-0500) Subject: gianfar: Fix a bug where the pointer never moves for dma_unmap... X-Git-Tag: v2.6.26-rc3~65^2~9^2~17 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad5da7ab7be0a510ae69d533edf573d1ca6eec4b;p=linux-2.6 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. Signed-off-by: Andy Fleming Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 6f22f068d6..25bdd0832d 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c @@ -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);