mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
disp: msm: sde: add encoder null check in prepare commit
Add a null check for encoder before accessing ops. Change-Id: I7b80f4aded89d6c6fe68a0d016f64e14f04f2e58 Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
parent
7ebf621320
commit
78ff60d33a
1 changed files with 1 additions and 1 deletions
|
|
@ -4200,7 +4200,7 @@ int sde_encoder_prepare_commit(struct drm_encoder *drm_enc)
|
|||
if (phys && phys->ops.prepare_commit)
|
||||
phys->ops.prepare_commit(phys);
|
||||
|
||||
if (phys->enable_state == SDE_ENC_ERR_NEEDS_HW_RESET)
|
||||
if (phys && phys->enable_state == SDE_ENC_ERR_NEEDS_HW_RESET)
|
||||
ret = -ETIMEDOUT;
|
||||
|
||||
if (phys && phys->hw_ctl) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue