diff --git a/drivers/video/msm/mdp4_overlay_dsi_cmd.c b/drivers/video/msm/mdp4_overlay_dsi_cmd.c index 51f955aa05aa..aa6850efe475 100644 --- a/drivers/video/msm/mdp4_overlay_dsi_cmd.c +++ b/drivers/video/msm/mdp4_overlay_dsi_cmd.c @@ -1210,7 +1210,9 @@ void mdp4_dsi_cmd_overlay(struct msm_fb_data_type *mfd) mdp4_overlay_mdp_perf_upd(mfd, 1); + mutex_lock(&mfd->dma->ov_mutex); mdp4_dsi_cmd_pipe_commit(cndx, 0); + mutex_unlock(&mfd->dma->ov_mutex); mdp4_overlay_mdp_perf_upd(mfd, 0); mutex_unlock(&mfd->dma->ov_mutex); diff --git a/drivers/video/msm/mdp4_overlay_dsi_video.c b/drivers/video/msm/mdp4_overlay_dsi_video.c index 2deef955134b..e7b457ec5f20 100644 --- a/drivers/video/msm/mdp4_overlay_dsi_video.c +++ b/drivers/video/msm/mdp4_overlay_dsi_video.c @@ -1150,6 +1150,7 @@ void mdp4_dsi_video_overlay(struct msm_fb_data_type *mfd) mutex_lock(&mfd->dma->ov_mutex); mdp4_dsi_video_pipe_commit(0, 0); + mutex_unlock(&mfd->dma->ov_mutex); if (pipe->ov_blt_addr) mdp4_dsi_video_wait4ov(0);