projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f378274
)
ath10k: Initialize list-head on vif creation.
author
Ben Greear
<greearb@candelatech.com>
Tue, 22 Oct 2013 21:54:14 +0000
(14:54 -0700)
committer
Kalle Valo
<kvalo@qca.qualcomm.com>
Thu, 24 Oct 2013 05:33:29 +0000
(08:33 +0300)
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>
drivers/net/wireless/ath/ath10k/mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath10k/mac.c
b/drivers/net/wireless/ath/ath10k/mac.c
index
da23c3f
..
908e90d
100644
(file)
--- 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");