Browse Source

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
Jiachao Wu 7 years ago
parent
commit
341d07550b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/cds/src/cds_api.c

+ 2 - 1
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);