]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: don't leak a station when we drain
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 20 Jan 2014 13:21:26 +0000 (15:21 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 30 Jan 2014 17:29:02 +0000 (19:29 +0200)
commit263fccce0f632a2b17a19b46b47be819a8d21d42
treedbc0af3ce6f4db64dece51ca837b072532da51cb
parent592a7a37ac428f6be4dbb73f3c71eefcde13b10b
iwlwifi: mvm: don't leak a station when we drain

We had a bug that prevented us from removing a station
after we entered the drain flow:

We assign sta to be NULL if it was an error value.
Then we tested it against -EBUSY, but forget to retrieve
the value again from mvm->fw_id_to_mac_id[sta_id].

Due to this bug, we ended up never removing the STA from
the firmware. This led to an firmware assert when we remove
the GO vif.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/tx.c