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

Commit da71bb72 authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran
Browse files

disp: msm: sde: reset crtc power_event on crtc disable



Reset the power_event handle to NULL after unregistering
during crtc disable. This will avoid dangling pointer
being accessed later.

Change-Id: I73044835e8594b776eb593f2f0a4a1d2b5563531
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent b86633e5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4115,9 +4115,11 @@ static void sde_crtc_disable(struct drm_crtc *crtc)
			sde_encoder_control_idle_pc(encoder, true);
	}

	if (sde_crtc->power_event)
	if (sde_crtc->power_event) {
		sde_power_handle_unregister_event(&priv->phandle,
				sde_crtc->power_event);
		sde_crtc->power_event = NULL;
	}

	/**
	 * All callbacks are unregistered and frame done waits are complete