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

Commit 1bf95277 authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: ope: Move request id validity check outside of lock" into camera-kernel.lnx.3.1

parents eafc073b 464238bf
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1190,15 +1190,15 @@ static void cam_ope_ctx_cdm_callback(uint32_t handle, void *userdata,
	CAM_DBG(CAM_OPE, "CDM hdl=%x, udata=%pK, status=%d, cookie=%llu",
		handle, userdata, status, cookie);

	ctx = userdata;

	mutex_lock(&ctx->ctx_mutex);

	if (cookie >= CAM_CTX_REQ_MAX) {
		CAM_ERR(CAM_OPE, "Invalid reqIdx = %llu", cookie);
		goto end;
		return;
	}

	ctx = userdata;

	mutex_lock(&ctx->ctx_mutex);

	if (!test_bit(cookie, ctx->bitmap)) {
		CAM_INFO(CAM_OPE, "Request not present reqIdx = %d", cookie);
		goto end;