Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e63b33f3 authored by Ben Greear's avatar Ben Greear Committed by Kalle Valo
Browse files

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: default avatarBen Greear <greearb@candelatech.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent f3782744
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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");