iwlwifi: mvm: Fix paging memory leak
authorMatti Gottlieb <matti.gottlieb@intel.com>
Sun, 14 Feb 2016 15:05:39 +0000 (17:05 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 23 Feb 2016 19:51:30 +0000 (21:51 +0200)
commit905e36ae172c83a30894a3adefab7d4f850fcf54
tree15898501b249ddd5f3064bb7559013395de17739
parentfb896c44f88a75843a072cd6961b1615732f7811
iwlwifi: mvm: Fix paging memory leak

If the opmode is stopped and started again we did not free
the paging buffers. Fix that.
In addition when freeing the firmware's paging download
buffer, set the pointer to NULL.

Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c