From: Florian Fainelli Date: Wed, 24 Sep 2008 19:16:40 +0000 (+0200) Subject: r6040: fix wrong assignment in r6040_free_txbufs X-Git-Tag: v2.6.28-rc1~717^2~191 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3b060be0582373be3c380629d7a6de5f06a311ed;p=linux-2.6-omap-h63xx.git r6040: fix wrong assignment in r6040_free_txbufs This patch fixes a wrong assignment in r6040_free_txbufs on a receive skb pointer while we should actually do this on the transmit skb pointer. Signed-off-by: Florian Fainelli Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index 025f526558b..34fe7ef8e5e 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c @@ -265,7 +265,7 @@ static void r6040_free_txbufs(struct net_device *dev) le32_to_cpu(lp->tx_insert_ptr->buf), MAX_BUF_SIZE, PCI_DMA_TODEVICE); dev_kfree_skb(lp->tx_insert_ptr->skb_ptr); - lp->rx_insert_ptr->skb_ptr = NULL; + lp->tx_insert_ptr->skb_ptr = NULL; } lp->tx_insert_ptr = lp->tx_insert_ptr->vndescp; }