r6040: fix wrong assignment in r6040_free_txbufs
authorFlorian Fainelli <florian@openwrt.org>
Wed, 24 Sep 2008 19:16:40 +0000 (21:16 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 25 Sep 2008 00:48:08 +0000 (20:48 -0400)
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 <florian@openwrt.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/r6040.c

index 025f526558bc83040aff3db99bc90927ec2203a2..34fe7ef8e5edf637c1f3c5f301c944e08f598076 100644 (file)
@@ -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;
        }