Skip to content

Commit d07c7cf

Browse files
jmberg-intellinvjw
authored andcommitted
mac80211: add missing rcu_barrier
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 9594b56 commit d07c7cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/mac80211/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,8 @@ static void __exit ieee80211_exit(void)
10901090
ieee80211s_stop();
10911091

10921092
ieee80211_iface_exit();
1093+
1094+
rcu_barrier();
10931095
}
10941096

10951097

0 commit comments

Comments
 (0)