diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_plx.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_plx.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/hostap/hostap_plx.c b/drivers/net/wireless/hostap/hostap_plx.c index 85d3f8a29539..78d67b408b2f 100644 --- a/drivers/net/wireless/hostap/hostap_plx.c +++ b/drivers/net/wireless/hostap/hostap_plx.c | |||
@@ -568,10 +568,8 @@ static int prism2_plx_probe(struct pci_dev *pdev, | |||
568 | return hostap_hw_ready(dev); | 568 | return hostap_hw_ready(dev); |
569 | 569 | ||
570 | fail: | 570 | fail: |
571 | kfree(hw_priv); | ||
572 | if (local) | ||
573 | local->hw_priv = NULL; | ||
574 | prism2_free_local_data(dev); | 571 | prism2_free_local_data(dev); |
572 | kfree(hw_priv); | ||
575 | 573 | ||
576 | if (irq_registered && dev) | 574 | if (irq_registered && dev) |
577 | free_irq(dev->irq, dev); | 575 | free_irq(dev->irq, dev); |
@@ -604,9 +602,8 @@ static void prism2_plx_remove(struct pci_dev *pdev) | |||
604 | if (dev->irq) | 602 | if (dev->irq) |
605 | free_irq(dev->irq, dev); | 603 | free_irq(dev->irq, dev); |
606 | 604 | ||
607 | kfree(iface->local->hw_priv); | ||
608 | iface->local->hw_priv = NULL; | ||
609 | prism2_free_local_data(dev); | 605 | prism2_free_local_data(dev); |
606 | kfree(hw_priv); | ||
610 | pci_disable_device(pdev); | 607 | pci_disable_device(pdev); |
611 | } | 608 | } |
612 | 609 | ||