mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-06 05:17:28 -05:00
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:
committed by
David S. Miller
parent
704da560c0
commit
011f4ea097
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user