Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376157
b: refs/heads/master
c: 0213558
h: refs/heads/master
i:
  376155: ba1ac27
v: v3
  • Loading branch information
Sony Chacko authored and David S. Miller committed May 22, 2013
1 parent 9c47a60 commit 943aeda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: c2bba067660f71408548e9206bc9be27885a815c
refs/heads/master: 02135582f38e977fd609a7e345d7beb8c9b1c71f
12 changes: 8 additions & 4 deletions trunk/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2016,8 +2016,10 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
pci_enable_pcie_error_reporting(pdev);

ahw = kzalloc(sizeof(struct qlcnic_hardware_context), GFP_KERNEL);
if (!ahw)
if (!ahw) {
err = -ENOMEM;
goto err_out_free_res;
}

switch (ent->device) {
case PCI_DEVICE_ID_QLOGIC_QLE824X:
Expand Down Expand Up @@ -2053,6 +2055,7 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)

adapter->qlcnic_wq = create_singlethread_workqueue("qlcnic");
if (adapter->qlcnic_wq == NULL) {
err = -ENOMEM;
dev_err(&pdev->dev, "Failed to create workqueue\n");
goto err_out_free_netdev;
}
Expand Down Expand Up @@ -2133,6 +2136,10 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
goto err_out_disable_msi;
}

err = qlcnic_get_act_pci_func(adapter);
if (err)
goto err_out_disable_mbx_intr;

err = qlcnic_setup_netdev(adapter, netdev, pci_using_dac);
if (err)
goto err_out_disable_mbx_intr;
Expand Down Expand Up @@ -2162,9 +2169,6 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
break;
}

if (qlcnic_get_act_pci_func(adapter))
goto err_out_disable_mbx_intr;

if (adapter->drv_mac_learn)
qlcnic_alloc_lb_filters_mem(adapter);

Expand Down

0 comments on commit 943aeda

Please sign in to comment.