login
Header Space

 
 

[PATCH 2.6.25 1/2]S2io: Fix memory leak during free_tx_buffers

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <netdev@...>, <jeff@...>
Cc: <support@...>
Date: Wednesday, April 23, 2008 - 1:28 pm

- Fix the memory leak during free_tx_buffers.
 
Signed-off-by: Santosh Rastapur <santosh.rastapur@neterion.com>
Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com>
---
diff -Nurp 2.0.26.20/drivers/net/s2io.c 2.0.26.22-1/drivers/net/s2io.c
--- 2.0.26.20/drivers/net/s2io.c	2008-04-22 15:02:38.000000000 -0700
+++ 2.0.26.22-1/drivers/net/s2io.c	2008-04-22 15:12:25.000000000 -0700
@@ -2339,7 +2339,7 @@ static void free_tx_buffers(struct s2io_
 	for (i = 0; i < config->tx_fifo_num; i++) {
 		unsigned long flags;
 		spin_lock_irqsave(&mac_control->fifos[i].tx_lock, flags);
-		for (j = 0; j < config->tx_cfg[i].fifo_len - 1; j++) {
+		for (j = 0; j < config->tx_cfg[i].fifo_len; j++) {
 			txdp = (struct TxD *) \
 			mac_control->fifos[i].list_info[j].list_virt_addr;
 			skb = s2io_txdl_getskb(&mac_control->fifos[i], txdp, j);

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2.6.25 1/2]S2io: Fix memory leak during free_tx_buffers, Sreenivasa Honnur, (Wed Apr 23, 1:28 pm)
speck-geostationary