From 341d07550b550bfa2527d9cc4a16f3fca29b414c Mon Sep 17 00:00:00 2001 From: Jiachao Wu Date: Tue, 2 Jan 2018 15:20:32 +0800 Subject: [PATCH] qcacld-3.0: Check psoc in de-init process In the stress test of insmod/rmmod, the object of psoc might fail to be initialized during initialization. For such case, recovery process should not be triggered in the de-init process. Add check for psoc to avoid false alarm. Change-Id: I71f9eed8596958788f6a3213e7a3bcd9ee346781 CRs-Fixed: 2165620 --- core/cds/src/cds_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index f32698460d51..81e6cf5de5cc 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -1016,7 +1016,8 @@ QDF_STATUS cds_disable(struct wlan_objmgr_psoc *psoc) * wma_stop() does target PDEV suspend. */ - dispatcher_psoc_disable(psoc); + if (psoc) + dispatcher_psoc_disable(psoc); qdf_status = wma_stop(HAL_STOP_TYPE_RF_KILL);