diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-10-09 13:20:17 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-12 15:55:52 -0400 |
commit | d7c76f4c50887a7d7279373c1138ac56a1d6db3b (patch) | |
tree | 3c08f507d6352c6f69b501b2cd92368dc27d42b4 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 10c435f18b8cb78a5870c08d52955594f5ec9c31 (diff) | |
download | op-kernel-dev-d7c76f4c50887a7d7279373c1138ac56a1d6db3b.zip op-kernel-dev-d7c76f4c50887a7d7279373c1138ac56a1d6db3b.tar.gz |
iwlwifi: change the order of freeing memory
Need to free the dynamic allocated memory before ieee80211_free_hw();
once call ieee80211_free_hw(), should not reference to "priv" data
structure.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index c390dbd..837a193 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c @@ -4096,8 +4096,8 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e pci_set_drvdata(pdev, NULL); pci_disable_device(pdev); out_ieee80211_free_hw: - ieee80211_free_hw(priv->hw); iwl_free_traffic_mem(priv); + ieee80211_free_hw(priv->hw); out: return err; } |