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
This commit is contained in:
Jiachao Wu 2018-01-02 15:20:32 +08:00 • committed by snandini
commit 341d07550b

View file

@ -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);