From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:41796 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752770AbdEIJUc (ORCPT ); Tue, 9 May 2017 05:20:32 -0400 Subject: Patch "iwlwifi: mvm: fix accessing fw_id_to_mac_id" has been added to the 4.10-stable tree To: sara.sharon@intel.com, gregkh@linuxfoundation.org, luciano.coelho@intel.com Cc: , From: Date: Tue, 09 May 2017 11:19:41 +0200 Message-ID: <14943215812437@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled iwlwifi: mvm: fix accessing fw_id_to_mac_id to the 4.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: iwlwifi-mvm-fix-accessing-fw_id_to_mac_id.patch and it can be found in the queue-4.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From a95600294157ca7527ee7c70249fb53e09d8c566 Mon Sep 17 00:00:00 2001 From: Sara Sharon Date: Thu, 26 Jan 2017 14:43:32 +0200 Subject: iwlwifi: mvm: fix accessing fw_id_to_mac_id From: Sara Sharon commit a95600294157ca7527ee7c70249fb53e09d8c566 upstream. 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 Signed-off-by: Luca Coelho Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -2411,7 +2411,7 @@ void iwl_mvm_sta_pm_notif(struct iwl_mvm 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; Patches currently in stable-queue which might be from sara.sharon@intel.com are queue-4.10/iwlwifi-mvm-synchronize-firmware-dma-paging-memory.patch queue-4.10/iwlwifi-mvm-fix-reorder-timer-re-arming.patch queue-4.10/iwlwifi-pcie-fix-the-set-of-dma-memory-mask.patch queue-4.10/iwlwifi-mvm-fix-pending-frame-counter-calculation.patch queue-4.10/iwlwifi-pcie-trans-remove-unused-shift_param.patch queue-4.10/iwlwifi-mvm-fix-accessing-fw_id_to_mac_id.patch queue-4.10/iwlwifi-mvm-fix-references-to-first_agg_queue-in-dqa-mode.patch