From: Jiri Pirko Date: Wed, 20 Jun 2012 05:32:01 +0000 (+0000) Subject: team: use RCU_INIT_POINTER for NULL assignment of RCU pointer X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d8dbd96e507e1f1133d346be123e7be4b16b72c3;p=openwrt%2Fstaging%2Fblogic.git team: use RCU_INIT_POINTER for NULL assignment of RCU pointer Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/drivers/net/team/team_mode_loadbalance.c b/drivers/net/team/team_mode_loadbalance.c index b4475a5d2d4b..c385b45cad18 100644 --- a/drivers/net/team/team_mode_loadbalance.c +++ b/drivers/net/team/team_mode_loadbalance.c @@ -97,7 +97,7 @@ static void lb_tx_hash_to_port_mapping_null_port(struct team *team, pm = &lb_priv->ex->tx_hash_to_port_mapping[i]; if (rcu_access_pointer(pm->port) == port) { - rcu_assign_pointer(pm->port, NULL); + RCU_INIT_POINTER(pm->port, NULL); team_option_inst_set_change(pm->opt_inst_info); changed = true; }