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

Commit 1aee5ebf authored by Xiaowen Wu's avatar Xiaowen Wu Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm: check if primary_client is NULL pointer



Add check if rsc's primary_client is NULL pointer. This is needed
when system only enables DP connectors.

Change-Id: I4740de1079eaa7b4ceb9fedb969b9f7783517088
Signed-off-by: default avatarXiaowen Wu <wxiaowen@codeaurora.org>
parent 652771c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -281,7 +281,7 @@ int get_sde_rsc_primary_crtc(int rsc_index)
	}

	rsc = rsc_prv_list[rsc_index];
	return rsc->primary_client->crtc_id;
	return rsc->primary_client ? rsc->primary_client->crtc_id : 0;
}
EXPORT_SYMBOL(get_sde_rsc_primary_crtc);