--- driver/modules/hostap_pci.c +++ driver/modules/hostap_pci.c @@ -284,8 +284,6 @@ static int prism2_pci_probe(struct pci_d return 0; fail: - prism2_free_local_data(local); - if (irq_registered && dev) free_irq(dev->irq, dev); @@ -299,6 +297,8 @@ static int prism2_pci_probe(struct pci_d pci_disable_device(pdev); #endif + prism2_free_local_data(local); + return -ENODEV; }