On 12/11/2015 12:13 AM, Johannes Berg wrote:
From: Johannes Berg <johannes.b...@intel.com>

Properly protect the RCU dereference in iwl_mvm_get_key_sta_id() when
coming from iwl_mvm_update_tkip_key() which cannot hold the mvm->mutex
by moving the call into the RCU critical section.
Modify the check to use rcu_dereference_check() to permit this.

Fixes: 9513c5e18a0d ("iwlwifi: mvm: Avoid dereferencing sta if it was already 
flushed")
Reported-by: Laura Abbott <labb...@redhat.com>
Signed-off-by: Johannes Berg <johannes.b...@intel.com>

Thanks, it's working for me.

Tested-by: Laura Abbott <labb...@redhat.com>



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to