From: Amit Kumar Salecha Date: Thu, 7 Jan 2010 22:10:14 +0000 (+0000) Subject: netxen: fix tx ring memory leak X-Git-Tag: MMI-PSA29.97-13-9~24944^2~116 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=011f4ea09768fdf6f95e3781cba2ed681a2ac710;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c index 02f8d4b4db63..925b69958da5 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c @@ -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)