]> 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)
commitb7fc72e0b3b3e081905714860a215c82b6b47321
treedbc0af3ce6f4db64dece51ca837b072532da51cb
parent83583e50adc6a5fe7b8acbf06e519d407125fe65
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