]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c8f24cbc013e33369d7b3185e8e1308e59a2274
treed9aacf39f20eb9ff65bf9366e6f185f5193aa6c1
parent582159e30c5343426071abb6b46feaaee714e873
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