ath10k: Initialize list-head on vif creation.
PATCH 1/1 ath10k: Initialize list-head on vif creation.
From: Ben Greear <[email protected]>
If the creation fails, this keeps us from crashing later when trying to do a list_del(arvif->list).
Signed-off-by Ben Greear <[email protected]>
--- drivers/net/wireless/ath/ath10k/mac.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/ath10k/mac.c +1 -0
@@ -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" );
Signature · 7 lines
1.7.11.7 _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k
Kalle Valo
AppliedQuoted 6 lines · [email protected] writes:
From: Ben Greear <[email protected]>
If the creation fails, this keeps us from crashing later when trying to do a
list_del(arvif->list).Signed-off-by Ben Greear <[email protected]>
Thanks, applied.
Signature · 6 lines
Kalle Valo _______________________________________________ ath10k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath10k