Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10286
b: refs/heads/master
c: c355184
h: refs/heads/master
v: v3
  • Loading branch information
Jouni Malinen authored and Jeff Garzik committed Oct 4, 2005
1 parent 5bc1d54 commit b89d027
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 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: f7a74447553d698795ba74b7e17e916000b0cb08
refs/heads/master: c355184cd3cd58c9ffc78f2a17e0ac3563312ea7
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/hostap/hostap_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,14 @@ static void prism2_detach(dev_link_t *link)
*linkp = link->next;
/* release net devices */
if (link->priv) {
struct hostap_cs_priv *hw_priv;
struct net_device *dev;
struct hostap_interface *iface;
dev = link->priv;
iface = netdev_priv(dev);
kfree(iface->local->hw_priv);
iface->local->hw_priv = NULL;
hw_priv = iface->local->hw_priv;
prism2_free_local_data(dev);
kfree(hw_priv);
}
kfree(link);
}
Expand Down
9 changes: 2 additions & 7 deletions trunk/drivers/net/wireless/hostap/hostap_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,6 @@ static int prism2_pci_probe(struct pci_dev *pdev,
return hostap_hw_ready(dev);

fail:
kfree(hw_priv);

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

Expand All @@ -370,10 +368,8 @@ static int prism2_pci_probe(struct pci_dev *pdev,

err_out_disable:
pci_disable_device(pdev);
kfree(hw_priv);
if (local)
local->hw_priv = NULL;
prism2_free_local_data(dev);
kfree(hw_priv);

return -ENODEV;
}
Expand All @@ -398,9 +394,8 @@ static void prism2_pci_remove(struct pci_dev *pdev)
free_irq(dev->irq, dev);

mem_start = hw_priv->mem_start;
kfree(hw_priv);
iface->local->hw_priv = NULL;
prism2_free_local_data(dev);
kfree(hw_priv);

iounmap(mem_start);

Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/net/wireless/hostap/hostap_plx.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,8 @@ static int prism2_plx_probe(struct pci_dev *pdev,
return hostap_hw_ready(dev);

fail:
kfree(hw_priv);
if (local)
local->hw_priv = NULL;
prism2_free_local_data(dev);
kfree(hw_priv);

if (irq_registered && dev)
free_irq(dev->irq, dev);
Expand Down Expand Up @@ -604,9 +602,8 @@ static void prism2_plx_remove(struct pci_dev *pdev)
if (dev->irq)
free_irq(dev->irq, dev);

kfree(iface->local->hw_priv);
iface->local->hw_priv = NULL;
prism2_free_local_data(dev);
kfree(hw_priv);
pci_disable_device(pdev);
}

Expand Down

0 comments on commit b89d027

Please sign in to comment.