diff options
author | Ben Greear <greearb@candelatech.com> | 2013-10-22 17:54:14 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-10-24 01:33:29 -0400 |
commit | e63b33f3d059bda08ab7634a435024a6e7b82e1f (patch) | |
tree | 86e259b032ed32bb3fc9a005a8c2544b240b625f /drivers/net/wireless/ath/ath10k/mac.c | |
parent | f3782744c9b50edf94d28e37a937ff84f267dfab (diff) |
ath10k: Initialize list-head on vif creation.
If the creation fails, this keeps us from crashing later when
trying to do a list_del(arvif->list).
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/mac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index da23c3faaf5a..908e90dc238c 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c | |||
@@ -2064,6 +2064,7 @@ static int ath10k_add_interface(struct ieee80211_hw *hw, | |||
2064 | arvif->vif = vif; | 2064 | arvif->vif = vif; |
2065 | 2065 | ||
2066 | INIT_WORK(&arvif->wep_key_work, ath10k_tx_wep_key_work); | 2066 | INIT_WORK(&arvif->wep_key_work, ath10k_tx_wep_key_work); |
2067 | INIT_LIST_HEAD(&arvif->list); | ||
2067 | 2068 | ||
2068 | if ((vif->type == NL80211_IFTYPE_MONITOR) && ar->monitor_present) { | 2069 | if ((vif->type == NL80211_IFTYPE_MONITOR) && ar->monitor_present) { |
2069 | ath10k_warn("Only one monitor interface allowed\n"); | 2070 | ath10k_warn("Only one monitor interface allowed\n"); |