summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2012-06-20 05:32:01 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-06-20 21:04:10 (GMT)
commitd8dbd96e507e1f1133d346be123e7be4b16b72c3 (patch)
tree6c23e5e2c1c1e7f89d88d9155e4f96e0dac157ce /drivers
parentb443a2307d3ade1520daa15d79ef97ad00641504 (diff)
downloadlinux-fsl-qoriq-d8dbd96e507e1f1133d346be123e7be4b16b72c3.tar.xz
team: use RCU_INIT_POINTER for NULL assignment of RCU pointer
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/team/team_mode_loadbalance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/team/team_mode_loadbalance.c b/drivers/net/team/team_mode_loadbalance.c
index b4475a5..c385b45 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;
}