From: Ben Greear Date: Tue, 22 Oct 2013 21:54:14 +0000 (-0700) Subject: ath10k: Initialize list-head on vif creation. X-Git-Tag: next-20131210~53^2~32^2~42 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e63b33f3d059bda08ab7634a435024a6e7b82e1f;p=karo-tx-linux.git 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 Signed-off-by: Kalle Valo --- 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, arvif->vif = vif; INIT_WORK(&arvif->wep_key_work, ath10k_tx_wep_key_work); + INIT_LIST_HEAD(&arvif->list); if ((vif->type == NL80211_IFTYPE_MONITOR) && ar->monitor_present) { ath10k_warn("Only one monitor interface allowed\n");