Merge "disp: msm: sde: fix null dereference in sde_encoder_destroy"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
ccedfd643a
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user