diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_pci.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_pci.c b/drivers/net/wireless/hostap/hostap_pci.c index 2e85bdced2dd..194f07097581 100644 --- a/drivers/net/wireless/hostap/hostap_pci.c +++ b/drivers/net/wireless/hostap/hostap_pci.c | |||
@@ -307,7 +307,7 @@ static int prism2_pci_probe(struct pci_dev *pdev, | |||
307 | memset(hw_priv, 0, sizeof(*hw_priv)); | 307 | memset(hw_priv, 0, sizeof(*hw_priv)); |
308 | 308 | ||
309 | if (pci_enable_device(pdev)) | 309 | if (pci_enable_device(pdev)) |
310 | return -EIO; | 310 | goto err_out_free; |
311 | 311 | ||
312 | phymem = pci_resource_start(pdev, 0); | 312 | phymem = pci_resource_start(pdev, 0); |
313 | 313 | ||
@@ -368,6 +368,8 @@ static int prism2_pci_probe(struct pci_dev *pdev, | |||
368 | err_out_disable: | 368 | err_out_disable: |
369 | pci_disable_device(pdev); | 369 | pci_disable_device(pdev); |
370 | prism2_free_local_data(dev); | 370 | prism2_free_local_data(dev); |
371 | |||
372 | err_out_free: | ||
371 | kfree(hw_priv); | 373 | kfree(hw_priv); |
372 | 374 | ||
373 | return -ENODEV; | 375 | return -ENODEV; |