msm: mdss: Avoid NULL mixer during partial update ROI setup
Under MDSS suspend resume usecase, the mixer config might not be setup and if a partial update is issued for the first frame, it is necessary to avoid accessing the NULL mixer config. CRs-Fixed: 2053822 Change-Id: I17c0b98805ce9395899e988032097740126fee83 Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
This commit is contained in:
parent
25865f691b
commit
55a175279c
1 changed files with 2 additions and 2 deletions
|
@ -1107,9 +1107,9 @@ static inline enum mdss_mdp_pu_type mdss_mdp_get_pu_type(
|
|||
|
||||
if (!is_split_lm(mctl->mfd) || mdss_mdp_is_both_lm_valid(mctl))
|
||||
pu_type = MDSS_MDP_DEFAULT_UPDATE;
|
||||
else if (mctl->mixer_left->valid_roi)
|
||||
else if (mctl->mixer_left && mctl->mixer_left->valid_roi)
|
||||
pu_type = MDSS_MDP_LEFT_ONLY_UPDATE;
|
||||
else if (mctl->mixer_right->valid_roi)
|
||||
else if (mctl->mixer_right && mctl->mixer_right->valid_roi)
|
||||
pu_type = MDSS_MDP_RIGHT_ONLY_UPDATE;
|
||||
else
|
||||
pr_err("%s: invalid pu_type\n", __func__);
|
||||
|
|
Loading…
Add table
Reference in a new issue