Skip to content

Commit

Permalink
gianfar: Fix a bug where the pointer never moves for dma_unmap...
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Fleming authored and Jeff Garzik committed May 13, 2008
1 parent 204e2f9 commit ad5da7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ad5da7a

Please sign in to comment.