summaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic_init.c
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-09-05 17:43:07 +0000
committerDavid S. Miller <davem@davemloft.net>2009-09-07 01:53:01 -0700
commitdb4cfd8a6149e778befb2ff6e6f91cdc6394cbe6 (patch)
treedd1faddbbce164b86e58a7cde54bfbd7b3f528bd /drivers/net/netxen/netxen_nic_init.c
parent6ec1c69a8f6492fd25722f4762721921da074c12 (diff)
downloadop-kernel-dev-db4cfd8a6149e778befb2ff6e6f91cdc6394cbe6.zip
op-kernel-dev-db4cfd8a6149e778befb2ff6e6f91cdc6394cbe6.tar.gz
netxen: handle firmware load errors
Unwind allocations and release file firmware when when firmware load fails. 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_init.c')
-rw-r--r--drivers/net/netxen/netxen_nic_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c
index 04e36f2..534994d 100644
--- a/drivers/net/netxen/netxen_nic_init.c
+++ b/drivers/net/netxen/netxen_nic_init.c
@@ -905,6 +905,7 @@ netxen_release_firmware(struct netxen_adapter *adapter)
{
if (adapter->fw)
release_firmware(adapter->fw);
+ adapter->fw = NULL;
}
int netxen_init_dummy_dma(struct netxen_adapter *adapter)
OpenPOWER on IntegriCloud