diff options
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/main.c')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index f06e0695d412..551859214ee9 100644 --- a/drivers/net/wireless/ath/carl9170/main.c +++ b/drivers/net/wireless/ath/carl9170/main.c | |||
@@ -446,7 +446,7 @@ static void carl9170_op_stop(struct ieee80211_hw *hw) | |||
446 | 446 | ||
447 | mutex_lock(&ar->mutex); | 447 | mutex_lock(&ar->mutex); |
448 | if (IS_ACCEPTING_CMD(ar)) { | 448 | if (IS_ACCEPTING_CMD(ar)) { |
449 | rcu_assign_pointer(ar->beacon_iter, NULL); | 449 | RCU_INIT_POINTER(ar->beacon_iter, NULL); |
450 | 450 | ||
451 | carl9170_led_set_state(ar, 0); | 451 | carl9170_led_set_state(ar, 0); |
452 | 452 | ||
@@ -678,7 +678,7 @@ unlock: | |||
678 | vif_priv->active = false; | 678 | vif_priv->active = false; |
679 | bitmap_release_region(&ar->vif_bitmap, vif_id, 0); | 679 | bitmap_release_region(&ar->vif_bitmap, vif_id, 0); |
680 | ar->vifs--; | 680 | ar->vifs--; |
681 | rcu_assign_pointer(ar->vif_priv[vif_id].vif, NULL); | 681 | RCU_INIT_POINTER(ar->vif_priv[vif_id].vif, NULL); |
682 | list_del_rcu(&vif_priv->list); | 682 | list_del_rcu(&vif_priv->list); |
683 | mutex_unlock(&ar->mutex); | 683 | mutex_unlock(&ar->mutex); |
684 | synchronize_rcu(); | 684 | synchronize_rcu(); |
@@ -716,7 +716,7 @@ static void carl9170_op_remove_interface(struct ieee80211_hw *hw, | |||
716 | WARN_ON(vif_priv->enable_beacon); | 716 | WARN_ON(vif_priv->enable_beacon); |
717 | vif_priv->enable_beacon = false; | 717 | vif_priv->enable_beacon = false; |
718 | list_del_rcu(&vif_priv->list); | 718 | list_del_rcu(&vif_priv->list); |
719 | rcu_assign_pointer(ar->vif_priv[id].vif, NULL); | 719 | RCU_INIT_POINTER(ar->vif_priv[id].vif, NULL); |
720 | 720 | ||
721 | if (vif == main_vif) { | 721 | if (vif == main_vif) { |
722 | rcu_read_unlock(); | 722 | rcu_read_unlock(); |
@@ -1258,7 +1258,7 @@ static int carl9170_op_sta_add(struct ieee80211_hw *hw, | |||
1258 | } | 1258 | } |
1259 | 1259 | ||
1260 | for (i = 0; i < CARL9170_NUM_TID; i++) | 1260 | for (i = 0; i < CARL9170_NUM_TID; i++) |
1261 | rcu_assign_pointer(sta_info->agg[i], NULL); | 1261 | RCU_INIT_POINTER(sta_info->agg[i], NULL); |
1262 | 1262 | ||
1263 | sta_info->ampdu_max_len = 1 << (3 + sta->ht_cap.ampdu_factor); | 1263 | sta_info->ampdu_max_len = 1 << (3 + sta->ht_cap.ampdu_factor); |
1264 | sta_info->ht_sta = true; | 1264 | sta_info->ht_sta = true; |
@@ -1285,7 +1285,7 @@ static int carl9170_op_sta_remove(struct ieee80211_hw *hw, | |||
1285 | struct carl9170_sta_tid *tid_info; | 1285 | struct carl9170_sta_tid *tid_info; |
1286 | 1286 | ||
1287 | tid_info = rcu_dereference(sta_info->agg[i]); | 1287 | tid_info = rcu_dereference(sta_info->agg[i]); |
1288 | rcu_assign_pointer(sta_info->agg[i], NULL); | 1288 | RCU_INIT_POINTER(sta_info->agg[i], NULL); |
1289 | 1289 | ||
1290 | if (!tid_info) | 1290 | if (!tid_info) |
1291 | continue; | 1291 | continue; |
@@ -1398,7 +1398,7 @@ static int carl9170_op_ampdu_action(struct ieee80211_hw *hw, | |||
1398 | spin_unlock_bh(&ar->tx_ampdu_list_lock); | 1398 | spin_unlock_bh(&ar->tx_ampdu_list_lock); |
1399 | } | 1399 | } |
1400 | 1400 | ||
1401 | rcu_assign_pointer(sta_info->agg[tid], NULL); | 1401 | RCU_INIT_POINTER(sta_info->agg[tid], NULL); |
1402 | rcu_read_unlock(); | 1402 | rcu_read_unlock(); |
1403 | 1403 | ||
1404 | ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid); | 1404 | ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid); |