diff --git a/drivers/video/msm/mdp4_overlay.c b/drivers/video/msm/mdp4_overlay.c index 11eaa9f13d61..d338946b4be1 100644 --- a/drivers/video/msm/mdp4_overlay.c +++ b/drivers/video/msm/mdp4_overlay.c @@ -2616,7 +2616,8 @@ static int mdp4_calc_pipe_mdp_clk(struct msm_fb_data_type *mfd, * required(FIR). */ if ((mfd->panel_info.lcdc.v_back_porch <= 4) && - (pipe->src_h != pipe->dst_h)) { + (pipe->src_h != pipe->dst_h) && + (mfd->panel_info.lcdc.v_back_porch)) { u32 clk = 0; clk = 4 * (pclk >> shift) / mfd->panel_info.lcdc.v_back_porch; clk <<= shift;