Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23327
b: refs/heads/master
c: 9320199
h: refs/heads/master
i:
  23325: 8a9203c
  23323: 3171916
  23319: badf2dd
  23311: d2a1006
  23295: 5aa4f19
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Mar 23, 2006
1 parent a3e91eb commit 7a2547e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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: 4f7ecdf0b1b8125fe190247beb0df652829e13cb
refs/heads/master: 9320199957cebc39ccef372fa1fccf5ba3d3fd7d
4 changes: 3 additions & 1 deletion trunk/drivers/net/wireless/hostap/hostap_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ static int prism2_pci_probe(struct pci_dev *pdev,
memset(hw_priv, 0, sizeof(*hw_priv));

if (pci_enable_device(pdev))
return -EIO;
goto err_out_free;

phymem = pci_resource_start(pdev, 0);

Expand Down Expand Up @@ -368,6 +368,8 @@ static int prism2_pci_probe(struct pci_dev *pdev,
err_out_disable:
pci_disable_device(pdev);
prism2_free_local_data(dev);

err_out_free:
kfree(hw_priv);

return -ENODEV;
Expand Down
9 changes: 5 additions & 4 deletions trunk/drivers/net/wireless/hostap/hostap_plx.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ static int prism2_plx_probe(struct pci_dev *pdev,
memset(hw_priv, 0, sizeof(*hw_priv));

if (pci_enable_device(pdev))
return -EIO;
goto err_out_free;

/* National Datacomm NCP130 based on TMD7160, not PLX9052. */
tmd7160 = (pdev->vendor == 0x15e8) && (pdev->device == 0x0131);
Expand Down Expand Up @@ -567,16 +567,17 @@ static int prism2_plx_probe(struct pci_dev *pdev,
return hostap_hw_ready(dev);

fail:
prism2_free_local_data(dev);
kfree(hw_priv);

if (irq_registered && dev)
free_irq(dev->irq, dev);

if (attr_mem)
iounmap(attr_mem);

pci_disable_device(pdev);
prism2_free_local_data(dev);

err_out_free:
kfree(hw_priv);

return -ENODEV;
}
Expand Down

0 comments on commit 7a2547e

Please sign in to comment.