]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:48:44 +0000 (14:48 -0700)
commit72b847aa95584d9e0718c9e3ee38a627bbb24c17
tree8d8cd80cdf1838442896d56f95b8cf86a1c1439d
parent0dec867402c0ce4eee7ca0055a99d634fe32a72b
iwlwifi: mvm: fix memory leak in paging

commit 7fdf9663261cc77a516396fec82cee8a8ea07e76 upstream.

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.

Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/ops.c