forked from Minki/linux
iwlwifi: fix a memory leak in scan
This patch fixes a memory leak that the scan buffer isn't released on exit. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
4d38c2e8ea
commit
261415f77a
@ -911,6 +911,7 @@ void iwl_uninit_drv(struct iwl_priv *priv)
|
||||
iwl_free_calib_results(priv);
|
||||
iwlcore_free_geos(priv);
|
||||
iwl_free_channel_map(priv);
|
||||
kfree(priv->scan);
|
||||
}
|
||||
EXPORT_SYMBOL(iwl_uninit_drv);
|
||||
|
||||
|
@ -8257,7 +8257,7 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev)
|
||||
|
||||
iwl3945_free_channel_map(priv);
|
||||
iwl3945_free_geos(priv);
|
||||
|
||||
kfree(priv->scan);
|
||||
if (priv->ibss_beacon)
|
||||
dev_kfree_skb(priv->ibss_beacon);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user