Commit b35b3b49 authored by Sreenivasa Honnur's avatar Sreenivasa Honnur Committed by Jeff Garzik

S2io: Fix memory leak during free_tx_buffers

- Fix the memory leak during free_tx_buffers.
Signed-off-by: default avatarSantosh Rastapur <santosh.rastapur@neterion.com>
Signed-off-by: default avatarRamkrishna Vepa <ram.vepa@neterion.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent f38d1008
...@@ -2458,7 +2458,7 @@ static void free_tx_buffers(struct s2io_nic *nic) ...@@ -2458,7 +2458,7 @@ static void free_tx_buffers(struct s2io_nic *nic)
for (i = 0; i < config->tx_fifo_num; i++) { for (i = 0; i < config->tx_fifo_num; i++) {
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&mac_control->fifos[i].tx_lock, 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 *) \ txdp = (struct TxD *) \
mac_control->fifos[i].list_info[j].list_virt_addr; mac_control->fifos[i].list_info[j].list_virt_addr;
skb = s2io_txdl_getskb(&mac_control->fifos[i], txdp, j); skb = s2io_txdl_getskb(&mac_control->fifos[i], txdp, j);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment