aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index b49f9f7a8a67..18f6f6807565 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -3405,7 +3405,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
3405 } 3405 }
3406 err = iwl_eeprom_check_version(priv); 3406 err = iwl_eeprom_check_version(priv);
3407 if (err) 3407 if (err)
3408 goto out_iounmap; 3408 goto out_free_eeprom;
3409 3409
3410 /* extract MAC Address */ 3410 /* extract MAC Address */
3411 iwl_eeprom_get_mac(priv, priv->mac_addr); 3411 iwl_eeprom_get_mac(priv, priv->mac_addr);
@@ -3501,6 +3501,8 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
3501 return 0; 3501 return 0;
3502 3502
3503 out_remove_sysfs: 3503 out_remove_sysfs:
3504 destroy_workqueue(priv->workqueue);
3505 priv->workqueue = NULL;
3504 sysfs_remove_group(&pdev->dev.kobj, &iwl_attribute_group); 3506 sysfs_remove_group(&pdev->dev.kobj, &iwl_attribute_group);
3505 out_free_irq: 3507 out_free_irq:
3506 free_irq(priv->pci_dev->irq, priv); 3508 free_irq(priv->pci_dev->irq, priv);