diff --git a/drivers/video/fbdev/msm/mdss_mdp_intf_video.c b/drivers/video/fbdev/msm/mdss_mdp_intf_video.c index fa578baf4af2..ab9cc0c50807 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_intf_video.c +++ b/drivers/video/fbdev/msm/mdss_mdp_intf_video.c @@ -192,6 +192,11 @@ static void mdss_mdp_video_intf_recovery(void *data, int event) delay = POLL_TIME_USEC_FOR_LN_CNT; while (1) { + if (!ctl || !ctx || !ctx->timegen_en) { + pr_warn("Target is in suspend state\n"); + return; + } + line_cnt = mdss_mdp_video_line_count(ctl); if ((line_cnt >= min_ln_cnt) && (line_cnt <