iwlwifi: mvm: fix memory leak in paging
authorMatti Gottlieb <matti.gottlieb@intel.com>
Tue, 15 Mar 2016 11:46:47 +0000 (13:46 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 20 Mar 2016 21:01:54 +0000 (23:01 +0200)
commit7fdf9663261cc77a516396fec82cee8a8ea07e76
treed9aacf39f20eb9ff65bf9366e6f185f5193aa6c1
parent9fc515bc9e735c10cd327f05c20f5ef69474188d
iwlwifi: mvm: fix memory leak in paging

Currently paging download buffer is freed during the
the unloading of the opmode which happens when the driver
is unloaded.

This causes a memory leak since the paging download
buffer is allocated every time we enable the
interface, so the download buffer can be allocated many
times, but only be freed once.

Free paging download buffer during disabling of the
interface.

CC: stable@vger.kernel.org [4.3+]
Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/ops.c