Skip to content

Commit

Permalink
team: use RCU_INIT_POINTER for NULL assignment of RCU pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Jun 20, 2012
1 parent b443a23 commit d8dbd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/team/team_mode_loadbalance.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d8dbd96

Please sign in to comment.