summaryrefslogtreecommitdiff
path: root/drivers/net/gianfar.c
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2008-05-07 18:20:55 (GMT)
committerJeff Garzik <jgarzik@redhat.com>2008-05-13 05:31:38 (GMT)
commitad5da7ab7be0a510ae69d533edf573d1ca6eec4b (patch)
tree060bc709bb502c51830a929272ba406a38855f95 /drivers/net/gianfar.c
parent204e2f98c2d13f869b8541f3c57c7314f75cab11 (diff)
downloadlinux-ad5da7ab7be0a510ae69d533edf573d1ca6eec4b.tar.xz
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 <afleming@freescale.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r--drivers/net/gianfar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 6f22f06..25bdd08 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);