msm: mdss: Do not queue rotator if mixer is invalid
Stop rotator queue if the left mixer is invalid. This avoids null pointer dereference related crashes seen during reboot testing. Change-Id: I8d7eee04cbe9a1b6b4fc2593fb1d836e7ef9c941 Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
This commit is contained in:
parent
2e9714f338
commit
e9f731c309
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue