]> www.infradead.org Git - users/dwmw2/linux.git/commit
iwlwifi: mvm: fix aux station leak
authorSharon <sara.sharon@intel.com>
Fri, 29 May 2020 06:39:29 +0000 (09:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:32:51 +0000 (09:32 +0200)
commitcbe4a005b02571bc5c0ce8e359346b35d576b3dd
treefbbc489d13e517ee763db5acaa49adba58734c20
parent4e04ef3e2c7cd60ee317011679bb942e7b6dbf02
iwlwifi: mvm: fix aux station leak

[ Upstream commit f327236df2afc8c3c711e7e070f122c26974f4da ]

When mvm is initialized we alloc aux station with aux queue.
We later free the station memory when driver is stopped, but we
never free the queue's memory, which casues a leak.

Add a proper de-initialization of the station.

Signed-off-by: Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200529092401.0121c5be55e9.Id7516fbb3482131d0c9dfb51ff20b226617ddb49@changeid
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.h