mirror_ubuntu-kernels/drivers/net/wireless
Anilkumar Kolli 4ad24a9d83 ath10k: fix kernel panic, move arvifs list head init before htt init
It is observed that while loading and unloading ath10k modules
in an infinite loop, before ath10k_core_start() completion HTT
rx frames are received, while processing these frames,
dereferencing the arvifs list code is getting hit before
initilizing the arvifs list, causing a kernel panic.

This patch initilizes the arvifs list before initilizing htt.

Fixes the below issue:
 [<bf88b058>] (ath10k_htt_rx_pktlog_completion_handler+0x278/0xd08 [ath10k_core])
 [<bf88b058>] (ath10k_htt_rx_pktlog_completion_handler [ath10k_core])
 [<bf88c0dc>] (ath10k_htt_txrx_compl_task+0x5f4/0xeb0 [ath10k_core])
 [<bf88c0dc>] (ath10k_htt_txrx_compl_task [ath10k_core])
 [<c0234100>] (tasklet_action+0x8c/0xec)
 [<c0234100>] (tasklet_action)
 [<c02337c0>] (__do_softirq+0xf8/0x228)
 [<c02337c0>] (__do_softirq)  [<c0233920>] (run_ksoftirqd+0x30/0x90)
 Code: e5954ad8 e2899008 e1540009 0a00000d (e5943008)
 ---[ end trace 71de5c2e011dbf56 ]---
 Kernel panic - not syncing: Fatal exception in interrupt

Fixes: 500ff9f938 ("ath10k: implement chanctx API")
Cc: <stable@vger.kernel.org>
Signed-off-by: Anilkumar Kolli <akolli@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2016-05-06 18:55:36 +03:00
..
admtek cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
ath ath10k: fix kernel panic, move arvifs list head init before htt init 2016-05-06 18:55:36 +03:00
atmel cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
broadcom brcmfmac: testing the wrong variable in brcmf_rx_hdrpull() 2016-04-26 12:29:43 +03:00
cisco cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
intel iwlwifi: fix fw version reading for DVM devices 2016-04-26 12:32:07 +03:00
intersil prism54: isl_38xx: Replace 'struct timeval' 2016-04-26 12:09:17 +03:00
marvell mwifiex: fix loop timeout in mwifiex_prog_fw_w_helper() 2016-04-26 12:28:56 +03:00
mediatek cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
ralink rt2800lib: enable MFP if hw crypt is disabled 2016-04-26 12:30:43 +03:00
realtek rtl8xxxu: Rename rtl8723au_iqk_phy_iq_bb_reg 2016-04-26 12:26:54 +03:00
rsi cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
st cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
ti cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
zydas cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
Kconfig mac80211_hwsim: move Kconfig entry for sorting alphabetically 2015-11-18 15:23:36 +02:00
mac80211_hwsim.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
mac80211_hwsim.h
Makefile ath: unify Kconfig with other vendors 2015-11-18 14:28:31 +02:00
ray_cs.c ray_cs: Change 1 to true for bool type variable. 2015-06-02 23:30:14 +03:00
ray_cs.h
rayctl.h
rndis_wlan.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
wl3501_cs.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
wl3501.h