From 40f528ceaa04b878fa0fa2976846abfc832cc82d Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Fri, 3 Mar 2017 14:36:17 +0530 Subject: [PATCH] qcacld-3.0: While adding virtual interface, rtnl lock taken twice wlan-cld3.driver.lnx.1.1-dev to wlan-cld3.driver.lnx.2.0-dev propagation As a part of add virtual interface API kernel takes the rtnl lock, if start modules fails then it will take the rtnl lock again while closing the adapter which causes the UI freeze issue. To resolve this issue, call close adapter API with indication that lock is already taken. Change-Id: Ic186eba794600b189021d7455a5811972280ee84 CRs-Fixed: 2013661 --- core/hdd/src/wlan_hdd_p2p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_p2p.c b/core/hdd/src/wlan_hdd_p2p.c index 7b33fb16c8cf..fac65b32b9ab 100644 --- a/core/hdd/src/wlan_hdd_p2p.c +++ b/core/hdd/src/wlan_hdd_p2p.c @@ -2176,7 +2176,7 @@ stop_modules: hdd_info("Other interfaces are still up dont close modules!"); close_adapter: - hdd_close_adapter(pHddCtx, pAdapter, false); + hdd_close_adapter(pHddCtx, pAdapter, true); return ERR_PTR(-EINVAL); }