mac80211: use RCU_INIT_POINTER
rcu_assign_pointer() ensures that the initialization of a structure is carried out before storing a pointer to that structure. However, in the case that NULL is assigned there's no structure to initialize so using RCU_INIT_POINTER instead is safe and more efficient. Signed-off-by:Monam Agarwal <monamagarwal123@gmail.com> [squash eight tiny patches, rewrite commit log] Signed-off-by:
Johannes Berg <johannes.berg@intel.com>
Showing
- net/mac80211/cfg.c 1 addition, 1 deletionnet/mac80211/cfg.c
- net/mac80211/chan.c 1 addition, 1 deletionnet/mac80211/chan.c
- net/mac80211/debugfs.c 1 addition, 1 deletionnet/mac80211/debugfs.c
- net/mac80211/ibss.c 1 addition, 1 deletionnet/mac80211/ibss.c
- net/mac80211/iface.c 4 additions, 4 deletionsnet/mac80211/iface.c
- net/mac80211/mesh.c 3 additions, 3 deletionsnet/mac80211/mesh.c
- net/mac80211/scan.c 5 additions, 5 deletionsnet/mac80211/scan.c
- net/mac80211/util.c 1 addition, 1 deletionnet/mac80211/util.c
Loading
Please register or sign in to comment