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

Commit 0c776885 authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: Add NULL check for encoder master



Add NULL check for encoder master during vsync source
configuration to avoid any NULL pointer dereference.

Change-Id: Ib129542993faa68fb8409867ef0eb42efd082826
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 38ec7e0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1454,7 +1454,7 @@ static void _sde_encoder_update_vsync_source(struct sde_encoder_virt *sde_enc,
	struct msm_mode_info mode_info;
	int i, rc = 0;

	if (!sde_enc || !disp_info) {
	if (!sde_enc || !sde_enc->cur_master || !disp_info) {
		SDE_ERROR("invalid param sde_enc:%d or disp_info:%d\n",
					sde_enc != NULL, disp_info != NULL);
		return;