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>
This commit is contained in:
parent
704da560c0
commit
011f4ea097
|
@ -184,6 +184,8 @@ skip_rds:
|
|||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue