summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorSreenivasa Honnur <Sreenivasa.Honnur@neterion.com>2008-04-23 19:28:08 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-04-25 08:07:09 +0200
commitb35b3b49fc6750806964048b31799c8782980ef9 (patch)
treeb319381f48c8dd5dfd19f824ac72500aefeba8ad /drivers/net
parentucc_geth: Fix sneaky merge conflict regarding bus_id (diff)
downloadlinux-b35b3b49fc6750806964048b31799c8782980ef9.tar.xz
linux-b35b3b49fc6750806964048b31799c8782980ef9.zip
S2io: Fix memory leak during free_tx_buffers
- 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> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/s2io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index dcbe01b0ca0d..ab96aa292b78 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -2458,7 +2458,7 @@ static void free_tx_buffers(struct s2io_nic *nic)
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);