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

Commit 13c552d2 authored by Jayaprakash's avatar Jayaprakash
Browse files

drm/msm/sde : initialize rsc_state and wait_refcount



Initialize rsc_state to idle_state and wait_refcount
to zero before using the variables.

Change-Id: Iddcb5ca26ebaeaac1c41f82706f96b088193c8ac
Signed-off-by: default avatarJayaprakash <jmadiset@codeaurora.org>
parent 12334a72
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1898,7 +1898,7 @@ static int _sde_encoder_update_rsc_client(
{
	struct sde_encoder_virt *sde_enc;
	struct drm_crtc *crtc;
	enum sde_rsc_state rsc_state;
	enum sde_rsc_state rsc_state = SDE_RSC_IDLE_STATE;
	struct sde_rsc_cmd_config *rsc_config;
	int ret, prefill_lines;
	struct msm_display_info *disp_info;
@@ -1908,7 +1908,7 @@ static int _sde_encoder_update_rsc_client(
	struct drm_crtc *primary_crtc;
	int pipe = -1;
	int rc = 0;
	int wait_refcount;
	int wait_refcount = 0;
	u32 qsync_mode = 0;

	if (!drm_enc || !drm_enc->dev) {