Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195164
b: refs/heads/master
c: a7fc948
h: refs/heads/master
v: v3
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed May 18, 2010
1 parent 72fe9ef commit bea943b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20c67bd40eacf26c8d61727aaf9cc791d682b40a
refs/heads/master: a7fc948f4d11d80ac2bd08335dc1e0fb77ddf468
10 changes: 8 additions & 2 deletions trunk/drivers/net/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,12 @@ qlcnic_start_firmware(struct qlcnic_adapter *adapter)

adapter->need_fw_reset = 0;

/* fall through and release firmware */
qlcnic_release_firmware(adapter);
return 0;

err_out:
QLCWR32(adapter, QLCNIC_CRB_DEV_STATE, QLCNIC_DEV_FAILED);
dev_err(&adapter->pdev->dev, "Device state set to failed\n");
qlcnic_release_firmware(adapter);
return err;
}
Expand Down Expand Up @@ -1100,8 +1103,10 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
goto err_out_iounmap;

err = qlcnic_start_firmware(adapter);
if (err)
if (err) {
dev_err(&pdev->dev, "Loading fw failed.Please Reboot\n");
goto err_out_decr_ref;
}

qlcnic_clear_stats(adapter);

Expand Down Expand Up @@ -2061,6 +2066,7 @@ qlcnic_can_start_firmware(struct qlcnic_adapter *adapter)
break;

case QLCNIC_DEV_FAILED:
dev_err(&adapter->pdev->dev, "Device in failed state.\n");
qlcnic_api_unlock(adapter);
return -1;

Expand Down

0 comments on commit bea943b

Please sign in to comment.