aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic_init.c
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-09-05 13:43:07 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-07 04:53:01 -0400
commitdb4cfd8a6149e778befb2ff6e6f91cdc6394cbe6 (patch)
treedd1faddbbce164b86e58a7cde54bfbd7b3f528bd /drivers/net/netxen/netxen_nic_init.c
parent6ec1c69a8f6492fd25722f4762721921da074c12 (diff)
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 04e36f2b1a93..534994dc167f 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)
905{ 905{
906 if (adapter->fw) 906 if (adapter->fw)
907 release_firmware(adapter->fw); 907 release_firmware(adapter->fw);
908 adapter->fw = NULL;
908} 909}
909 910
910int netxen_init_dummy_dma(struct netxen_adapter *adapter) 911int netxen_init_dummy_dma(struct netxen_adapter *adapter)