summaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-09-11 13:28:13 +0200
committerDavid S. Miller <davem@davemloft.net>2009-09-12 01:58:45 +0200
commitec5c50cb93c446a4686863df74e4b7a547628115 (patch)
tree276e2c1d4c0e806c429322e75f10f985da441ee4 /drivers/net/netxen
parentnetxen: improve pci memory access (diff)
downloadlinux-ec5c50cb93c446a4686863df74e4b7a547628115.tar.xz
linux-ec5c50cb93c446a4686863df74e4b7a547628115.zip
netxen: fix file firmware leak
Release file firmware when no firmware reset is required. Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r--drivers/net/netxen/netxen_nic_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 557e76c4c589..e8574eeae58f 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -817,7 +817,7 @@ netxen_start_firmware(struct netxen_adapter *adapter)
if (err < 0)
goto err_out;
if (err == 0)
- goto wait_init;
+ goto ready;
if (first_boot != 0x55555555) {
NXWR32(adapter, CRB_CMDPEG_STATE, 0);
@@ -860,6 +860,7 @@ netxen_start_firmware(struct netxen_adapter *adapter)
| (_NETXEN_NIC_LINUX_SUBVERSION);
NXWR32(adapter, CRB_DRIVER_VERSION, val);
+ready:
NXWR32(adapter, NX_CRB_DEV_STATE, NX_DEV_READY);
wait_init:
@@ -874,7 +875,7 @@ wait_init:
netxen_check_options(adapter);
- return 0;
+ /* fall through and release firmware */
err_out:
netxen_release_firmware(adapter);