diff --git a/drivers/video/fbdev/msm/mdss_mdp_rotator.c b/drivers/video/fbdev/msm/mdss_mdp_rotator.c index 56f359849849..7e5dbae9544d 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_rotator.c +++ b/drivers/video/fbdev/msm/mdss_mdp_rotator.c @@ -565,6 +565,11 @@ static int mdss_mdp_rotator_queue_sub(struct mdss_mdp_rotator_session *rot, pipe = rot_pipe->pipe; + if (!pipe->mixer_left) { + pr_debug("Mixer left is null\n"); + return -EINVAL; + } + orig_ctl = pipe->mixer_left->ctl; if (orig_ctl->shared_lock) mutex_lock(orig_ctl->shared_lock);