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

Commit 7f4fc602 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Release resources only if they are loaded"

parents 59de2784 1272a8b8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -709,7 +709,9 @@ int msm_vidc_release_buffers(void *instance, int buffer_type)
	if (!inst)
		return -EINVAL;

	if (!inst->in_reconfig) {
	if (!inst->in_reconfig &&
		inst->state > MSM_VIDC_LOAD_RESOURCES &&
		inst->state < MSM_VIDC_RELEASE_RESOURCES_DONE) {
		rc = msm_comm_try_state(inst, MSM_VIDC_RELEASE_RESOURCES_DONE);
		if (rc) {
			dprintk(VIDC_ERR,