summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinay Krishna Eranna <c_veran@qti.qualcomm.com>2015-02-28 21:37:05 -0800
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-03-03 18:47:46 +0530
commit26458568047cd4e93e2b4aa7a8f2ec825a210c45 (patch)
treeb14870d2aedb45ef1c765ab513b45f5e6b5e5a4a
parenta32426425eebcbda881152383de565468c486d7b (diff)
qcacld-2.0: Making sure there is no active entry during unload
This is prima to qcacld-2.0 propagation. During unload of driver if there is any active entry point from the app space, then there might be race condition in verifying the state for cleanup in unload thread and access by the active entry. Making sure this race condition is avoided by updating the load unload flag with rtnl lock acquired. Change-Id: I385b8c646b50e8584fa588ebfa796c9413ffa46c CRs-Fixed: 801561
-rwxr-xr-xCORE/HDD/src/wlan_hdd_main.c2
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 defea6aad3f7..633e2efbdf4a 100755
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -13605,8 +13605,10 @@ static void hdd_driver_exit(void)
}
}
+ rtnl_lock();
pHddCtx->isUnloadInProgress = TRUE;
vos_set_load_unload_in_progress(VOS_MODULE_ID_VOSS, TRUE);
+ rtnl_unlock();
}
vos_wait_for_work_thread_completion(__func__);