netxen: fix tx ring memory leak

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>

authored by Amit Kumar Salecha and committed by David S. Miller 011f4ea0 704da560

+2
+2
drivers/net/netxen/netxen_nic_init.c
··· 184 184 185 185 tx_ring = adapter->tx_ring; 186 186 vfree(tx_ring->cmd_buf_arr); 187 + kfree(tx_ring); 188 + adapter->tx_ring = NULL; 187 189 } 188 190 189 191 int netxen_alloc_sw_resources(struct netxen_adapter *adapter)