Skip to content

Commit 964b19f

Browse files
elpjmberg-intel
authored andcommitted
mac80211: use synchronize_net() on key destroying
__ieee80211_key_destroy() calls synchronize_rcu() in order to sync the tx path before destroying the key. However, synching the tx path can be done with synchronize_net() as well, which is usually faster (the timing might be important for roaming scenarios). Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 761a48d commit 964b19f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/mac80211/key.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ static void __ieee80211_key_destroy(struct ieee80211_key *key)
402402
* Synchronize so the TX path can no longer be using
403403
* this key before we free/remove it.
404404
*/
405-
synchronize_rcu();
405+
synchronize_net();
406406

407407
if (key->local)
408408
ieee80211_key_disable_hw_accel(key);

0 commit comments

Comments
 (0)