From: Emmanuel Grumbach Date: Fri, 27 May 2011 15:40:29 +0000 (-0700) Subject: iwlagn: free the ICT ISR when the request_irq failed X-Git-Tag: MMI-PSA29.97-13-9~18350^2~12^2~42^2~529 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=93cce6f0adff92238965eadb3c046db58552087b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git iwlagn: free the ICT ISR when the request_irq failed Fix a memory leak in case request_irq fails. Signed-off-by: Emmanuel Grumbach Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 291ceb53c912..76b333624a2e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c @@ -3615,8 +3615,8 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) destroy_workqueue(priv->workqueue); priv->workqueue = NULL; free_irq(priv->pci_dev->irq, priv); - iwl_free_isr_ict(priv); out_disable_msi: + iwl_free_isr_ict(priv); pci_disable_msi(priv->pci_dev); iwl_uninit_drv(priv); out_free_eeprom: