From 1f1359d93d885a148eb8079aaa1bd2b56c993885 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Thu, 2 Mar 2017 15:13:10 +0530 Subject: qcacld-3.0: While adding virtual interface, rtnl lock taken twice 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 ea14978a8922..4f48df0c3094 100644 --- a/core/hdd/src/wlan_hdd_p2p.c +++ b/core/hdd/src/wlan_hdd_p2p.c @@ -2171,7 +2171,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); } -- cgit v1.2.3