team: use RCU_INIT_POINTER for NULL assignment of RCU pointer
authorJiri Pirko <jpirko@redhat.com>
Wed, 20 Jun 2012 05:32:01 +0000 (05:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jun 2012 21:04:10 +0000 (14:04 -0700)
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team_mode_loadbalance.c

index b4475a5d2d4b6a72c4656abe9ca85eff50caf08a..c385b45cad180f104c07725026f2ecb0688ed6ec 100644 (file)
@@ -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;
                }