iwlwifi: mvm: fix aux station leak
authorSharon <sara.sharon@intel.com>
Fri, 29 May 2020 06:39:29 +0000 (09:39 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 29 May 2020 07:32:37 +0000 (10:32 +0300)
commitf327236df2afc8c3c711e7e070f122c26974f4da
tree321afea972b0be8562b3ff00e5af8b76f903744d
parent4f4822b7cd5ab818a62815cc8eeca495cf8ec872
iwlwifi: mvm: fix aux station leak

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
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.h