From: Amit Kumar Salecha <amit.salecha@qlogic.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, dhananjay.phadke@qlogic.com
Subject: [PATCH net-2.6 1/4] netxen: fix tx ring memory leak
Date: Fri, 8 Jan 2010 00:10:14 -0800 [thread overview]
Message-ID: <1262938217-10089-2-git-send-email-amit.salecha@qlogic.com> (raw)
In-Reply-To: <1262938217-10089-1-git-send-email-amit.salecha@qlogic.com>
o While unloading driver or resetting the context, tx ring was not
getting free.
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
---
drivers/net/netxen/netxen_nic_init.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c
index 02f8d4b..925b699 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)
--
1.6.0.2
next prev parent reply other threads:[~2010-01-08 8:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-08 8:10 [PATCH net-2.6 0/4]netxen: fix memory leak Amit Kumar Salecha
2010-01-08 8:10 ` Amit Kumar Salecha [this message]
2010-01-08 8:10 ` [PATCH net-2.6 2/4] netxen: fix smatch warning Amit Kumar Salecha
2010-01-08 8:10 ` [PATCH net-2.6 3/4] netxen: fix set mac addr Amit Kumar Salecha
2010-01-08 8:10 ` [PATCH net-2.6 4/4] netxen: update version to 4.0.72 Amit Kumar Salecha
2010-01-08 8:40 ` [PATCH net-2.6 0/4]netxen: fix memory leak David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1262938217-10089-2-git-send-email-amit.salecha@qlogic.com \
--to=amit.salecha@qlogic.com \
--cc=davem@davemloft.net \
--cc=dhananjay.phadke@qlogic.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).