Skip to content

Commit

Permalink
netxen: fix tx ring memory leak
Browse files Browse the repository at this point in the history
o While unloading driver or resetting the context, tx ring was not
  getting free.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed Jan 8, 2010
1 parent 704da56 commit 011f4ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/netxen/netxen_nic_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ void netxen_free_sw_resources(struct netxen_adapter *adapter)

tx_ring = adapter->tx_ring;
vfree(tx_ring->cmd_buf_arr);
kfree(tx_ring);
adapter->tx_ring = NULL;
}

int netxen_alloc_sw_resources(struct netxen_adapter *adapter)
Expand Down

0 comments on commit 011f4ea

Please sign in to comment.