aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/r6040.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-09-24 15:16:40 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-09-24 20:48:08 -0400
commit3b060be0582373be3c380629d7a6de5f06a311ed (patch)
tree67415fb9e06b14a2ff75d987f782854a4cd530f6 /drivers/net/r6040.c
parent28a7e4c906bd86419eb8572b3b1343e619cd1470 (diff)
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 <florian@openwrt.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/r6040.c')
-rw-r--r--drivers/net/r6040.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c
index 025f526558bc..34fe7ef8e5ed 100644
--- a/drivers/net/r6040.c
+++ b/drivers/net/r6040.c
@@ -265,7 +265,7 @@ static void r6040_free_txbufs(struct net_device *dev)
265 le32_to_cpu(lp->tx_insert_ptr->buf), 265 le32_to_cpu(lp->tx_insert_ptr->buf),
266 MAX_BUF_SIZE, PCI_DMA_TODEVICE); 266 MAX_BUF_SIZE, PCI_DMA_TODEVICE);
267 dev_kfree_skb(lp->tx_insert_ptr->skb_ptr); 267 dev_kfree_skb(lp->tx_insert_ptr->skb_ptr);
268 lp->rx_insert_ptr->skb_ptr = NULL; 268 lp->tx_insert_ptr->skb_ptr = NULL;
269 } 269 }
270 lp->tx_insert_ptr = lp->tx_insert_ptr->vndescp; 270 lp->tx_insert_ptr = lp->tx_insert_ptr->vndescp;
271 } 271 }