diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-01-14 20:49:22 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-14 20:49:22 -0800 |
commit | 06e9d9f9783860fe4c602ef491f47211804ccc96 (patch) | |
tree | a2adab8ab7690984b11e7fdc757f91587c380d51 /drivers/net/netxen/netxen_nic_main.c | |
parent | 27c915a4d843b90eb4065298969578d15e5e6ab0 (diff) | |
download | lwn-06e9d9f9783860fe4c602ef491f47211804ccc96.tar.gz lwn-06e9d9f9783860fe4c602ef491f47211804ccc96.zip |
netxen: cleanup mac list on driver unload
This fixes a tiny memory leak when driver is unloaded. The mac
address list maintained in netxen_adapter needs to deleted when
driver is going down.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_main.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index cbe2b3e814dd..9268fd2fbacf 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c @@ -986,6 +986,9 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev) netxen_free_hw_resources(adapter); netxen_release_rx_buffers(adapter); netxen_free_sw_resources(adapter); + + if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) + netxen_p3_free_mac_list(adapter); } if (adapter->portnum == 0) |