msm: mdss: install the rel_fence even if retire_fence is skipped
Whenever retire_fence was skipped, the rel_fence was incorrectly
skipped as well. Ensure the rel_fence is installed even if the
retire_fence was skipped.
Bug: 32402303
Change-Id: I9e6af8c7d91e514ab5ed780a5643f4dbebf66756
diff --git a/drivers/video/msm/mdss/mdss_fb.c b/drivers/video/msm/mdss/mdss_fb.c
index f992335..aac1b7a 100644
--- a/drivers/video/msm/mdss/mdss_fb.c
+++ b/drivers/video/msm/mdss/mdss_fb.c
@@ -3191,10 +3191,11 @@
goto buf_sync_err_3;
}
- sync_fence_install(rel_fence, rel_fen_fd);
sync_fence_install(retire_fence, retire_fen_fd);
skip_retire_fence:
+ sync_fence_install(rel_fence, rel_fen_fd);
+
mutex_unlock(&sync_pt_data->sync_mutex);
if (buf_sync->flags & MDP_BUF_SYNC_FLAG_WAIT)