Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368812
b: refs/heads/master
c: f1a094a
h: refs/heads/master
v: v3
  • Loading branch information
Rajesh Borundia authored and David S. Miller committed Apr 2, 2013
1 parent 185954a commit 95e7107
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: d8fe3436df256ce48d953dc342ac114e6e368476
refs/heads/master: f1a094a83059b4677038befde6c4da6cfed31dbd
11 changes: 5 additions & 6 deletions trunk/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,10 @@ void qlcnic_teardown_intr(struct qlcnic_adapter *adapter)
}
}

static void
qlcnic_cleanup_pci_map(struct qlcnic_adapter *adapter)
static void qlcnic_cleanup_pci_map(struct qlcnic_hardware_context *ahw)
{
if (adapter->ahw->pci_base0 != NULL)
iounmap(adapter->ahw->pci_base0);
if (ahw->pci_base0 != NULL)
iounmap(ahw->pci_base0);
}

static int qlcnic_get_act_pci_func(struct qlcnic_adapter *adapter)
Expand Down Expand Up @@ -2026,7 +2025,7 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
free_netdev(netdev);

err_out_iounmap:
qlcnic_cleanup_pci_map(adapter);
qlcnic_cleanup_pci_map(ahw);

err_out_free_hw_res:
kfree(ahw);
Expand Down Expand Up @@ -2083,7 +2082,7 @@ static void qlcnic_remove(struct pci_dev *pdev)

qlcnic_remove_sysfs(adapter);

qlcnic_cleanup_pci_map(adapter);
qlcnic_cleanup_pci_map(adapter->ahw);

qlcnic_release_firmware(adapter);

Expand Down

0 comments on commit 95e7107

Please sign in to comment.