Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c180170 authored by Vulupala Shashank Reddy's avatar Vulupala Shashank Reddy Committed by Madan Koyyalamudi
Browse files

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
parent 673801d2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3166,6 +3166,9 @@ 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;

	if (!wma_is_vdev_valid(vdev_id))
		return false;