Skip to content

Commit

Permalink
mac80211: add missing rcu_barrier
Browse files Browse the repository at this point in the history
mac80211 uses call_rcu() with functions that are
defined in the module, so it must use rcu_barrier()
at module exit time.

Luckily, this seems to not be a problem in practice
as module unload and unregistration takes a long
time and probably does multiple synchronize_rcu().

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed May 16, 2011
1 parent 9594b56 commit d07c7cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,8 @@ static void __exit ieee80211_exit(void)
ieee80211s_stop();

ieee80211_iface_exit();

rcu_barrier();
}


Expand Down

0 comments on commit d07c7cf

Please sign in to comment.