msm: cvp: Avoid releasing buffers during boot

CVP auto PIL opens CVP for early initialization. However session
buffers were not created in that case. Avoid releasing buffers
if session is created for auto PIL.

Change-Id: I3339f1b865b0e106af0bbed47ad067e2d183e5b5
Signed-off-by: George Shen <sqiao@codeaurora.org>
This commit is contained in:
George Shen 2020-04-07 14:27:10 -07:00
commit 5c420492ed

View file

@ -457,10 +457,10 @@ int msm_cvp_close(void *instance)
return -EINVAL;
}
msm_cvp_cleanup_instance(inst);
if (inst->session_type != MSM_CVP_BOOT)
if (inst->session_type != MSM_CVP_BOOT) {
msm_cvp_cleanup_instance(inst);
msm_cvp_session_deinit(inst);
}
rc = msm_cvp_comm_try_state(inst, MSM_CVP_CORE_UNINIT);
if (rc) {