diff options
| author | Chandrasekaran, Manishekar <cmshekar@qti.qualcomm.com> | 2016-05-05 11:51:23 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-05-06 18:56:50 +0530 |
| commit | d770e2c526e6b1a890c565568de9f684a304b013 (patch) | |
| tree | 60ff22d5fc8f0d4e3ce1ba2d60c954f6799e3238 | |
| parent | bb3e4dbbda7075187e72c7b0132aa64096ec1273 (diff) | |
qcacld-2.0: Initialize spinlocks used for STA and SAP information update
Initialize spinlocks sap_update_info_lock and sta_update_info_lock which
are used during SAP and STA information update respectively. These
uninitialized spinlocks lead to crash during access due to bad magic
value of the spinlock.
Change-Id: I7d2df8337f9feed352430774907aa095affa5a69
CRs-Fixed: 1011996
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index e7f487671a0c..c8a0ddc3bffa 100644 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -14508,6 +14508,8 @@ int hdd_wlan_startup(struct device *dev, v_VOID_t *hif_sc) } spin_lock_init(&pHddCtx->dfs_lock); + spin_lock_init(&pHddCtx->sap_update_info_lock); + spin_lock_init(&pHddCtx->sta_update_info_lock); hdd_init_offloaded_packets_ctx(pHddCtx); // Load all config first as TL config is needed during vos_open pHddCtx->cfg_ini = (hdd_config_t*) kmalloc(sizeof(hdd_config_t), GFP_KERNEL); |
