diff options
author | Sara Sharon <sara.sharon@intel.com> | 2017-01-26 14:43:32 +0200 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2017-03-24 16:59:46 +0200 |
commit | a95600294157ca7527ee7c70249fb53e09d8c566 (patch) | |
tree | 31168d08682a9edc6a42342e8f17dc73166c8c7d /drivers/net/wireless | |
parent | 6be3b6cce1e225f189b68b4e84fc711d19b4277b (diff) | |
download | linux-a95600294157ca7527ee7c70249fb53e09d8c566.tar.bz2 |
iwlwifi: mvm: fix accessing fw_id_to_mac_id
Access should be by rcu_dereference. Issue was found by sparse.
Fixes: 65e254821cee ("iwlwifi: mvm: use firmware station PM notification for AP_LINK_PS")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index 6927caecd48e..486dcceed17a 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -2401,7 +2401,7 @@ void iwl_mvm_sta_pm_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb) return; rcu_read_lock(); - sta = mvm->fw_id_to_mac_id[notif->sta_id]; + sta = rcu_dereference(mvm->fw_id_to_mac_id[notif->sta_id]); if (WARN_ON(IS_ERR_OR_NULL(sta))) { rcu_read_unlock(); return; |