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

Commit 31b42cb2 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: kill session without acquiring lock"

parents 89067087 b2aa73c6
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -606,8 +606,10 @@ int msm_vidc_streamon(void *instance, enum v4l2_buf_type i)
	mutex_lock(&q->lock);
	rc = vb2_streamon(&q->vb2_bufq, i);
	mutex_unlock(&q->lock);
	if (rc)
	if (rc) {
		dprintk(VIDC_ERR, "streamon failed on port: %d\n", i);
		msm_comm_kill_session(inst);
	}
	return rc;
}
EXPORT_SYMBOL(msm_vidc_streamon);
@@ -1020,10 +1022,9 @@ static inline int start_streaming(struct msm_vidc_inst *inst)
	}

fail_start:
	if (rc) {
		dprintk(VIDC_ERR, "%s: kill session %pK\n", __func__, inst);
		msm_comm_kill_session(inst);
	}
	if (rc)
		dprintk(VIDC_ERR, "%s: inst %pK session %x failed to start\n",
			__func__, inst, hash32_ptr(inst->session));
	return rc;
}