qcacld-3.0: Check if wma pointer is NULL

In wma_is_roam_in_progress function, return false if wma pointer
returned from cds_get_context is NULL.

Change-Id: I0a3447f038a45ea93e769142cb5883a3f39c0991
CRs-Fixed: 2475071
This commit is contained in:
Saket Jha 2019-06-21 16:21:20 -07:00 committed by nshrivas
parent a891536aaf
commit 451d3db96a

View File

@ -3308,5 +3308,8 @@ bool wma_is_roam_in_progress(uint32_t vdev_id)
{
tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA);
if (!wma)
return false;
return wma->interfaces[vdev_id].roaming_in_progress;
}