Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c420492 authored by George Shen's avatar George Shen
Browse files

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: default avatarGeorge Shen <sqiao@codeaurora.org>
parent b38b5109
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -457,10 +457,10 @@ int msm_cvp_close(void *instance)
		return -EINVAL;
		return -EINVAL;
	}
	}


	if (inst->session_type != MSM_CVP_BOOT) {
		msm_cvp_cleanup_instance(inst);
		msm_cvp_cleanup_instance(inst);

	if (inst->session_type != MSM_CVP_BOOT)
		msm_cvp_session_deinit(inst);
		msm_cvp_session_deinit(inst);
	}


	rc = msm_cvp_comm_try_state(inst, MSM_CVP_CORE_UNINIT);
	rc = msm_cvp_comm_try_state(inst, MSM_CVP_CORE_UNINIT);
	if (rc) {
	if (rc) {