Merge "disp: msm: sde: fix null dereference in sde_encoder_destroy"

This commit is contained in:
qctecmdr
2023-12-22 00:15:30 -08:00
committed by Gerrit - the friendly Code Review server

View File

@@ -750,6 +750,7 @@ void sde_encoder_destroy(struct drm_encoder *drm_enc)
phys->ops.destroy(phys); phys->ops.destroy(phys);
--sde_enc->num_phys_encs; --sde_enc->num_phys_encs;
sde_enc->phys_vid_encs[i] = NULL; sde_enc->phys_vid_encs[i] = NULL;
sde_enc->phys_encs[i] = NULL;
} }
phys = sde_enc->phys_cmd_encs[i]; phys = sde_enc->phys_cmd_encs[i];
@@ -757,6 +758,7 @@ void sde_encoder_destroy(struct drm_encoder *drm_enc)
phys->ops.destroy(phys); phys->ops.destroy(phys);
--sde_enc->num_phys_encs; --sde_enc->num_phys_encs;
sde_enc->phys_cmd_encs[i] = NULL; sde_enc->phys_cmd_encs[i] = NULL;
sde_enc->phys_encs[i] = NULL;
} }
phys = sde_enc->phys_encs[i]; phys = sde_enc->phys_encs[i];