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

Commit 43113b94 authored by Amine Najahi's avatar Amine Najahi
Browse files

disp: msm: sde: check for null topology in dither setup path



Check for invalid topology value before extracting the number
of LMs in dither setup path. This occurs when there is a race
condition between runtime supend/resume and dynamic FPS switch.

Change-Id: Ibf4bd2fe5f094ddec11ebc5b85ea9a5cfa0e91a7
Signed-off-by: default avatarAmine Najahi <anajahi@codeaurora.org>
parent bb71c092
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2551,8 +2551,9 @@ static void _sde_encoder_setup_dither(struct sde_encoder_phys *phys)
		return;

	topology = sde_connector_get_topology_name(phys->connector);
	if ((topology == SDE_RM_TOPOLOGY_PPSPLIT) &&
			(phys->split_role == ENC_ROLE_SLAVE))
	if ((topology == SDE_RM_TOPOLOGY_NONE) ||
			((topology == SDE_RM_TOPOLOGY_PPSPLIT) &&
			(phys->split_role == ENC_ROLE_SLAVE)))
		return;

	drm_enc = phys->parent;