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

Commit 0ff27d68 authored by Tejas Prajapati's avatar Tejas Prajapati
Browse files

msm: camera: icp: dump page fault in ready state



If the state of the context is acquired icp can be in
stopped state, so dump pf only if we are in ready state and
above.

Change-Id: I40e42ae6b6e9c98a7bd7d95b7cbb07865ff9b0cf
Signed-off-by: default avatarTejas Prajapati <tpraja@codeaurora.org>
parent a11f39a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ static int cam_icp_context_dump_active_request(void *data, unsigned long iova,
		return -EINVAL;
	}

	if (ctx->state < CAM_CTX_ACQUIRED || ctx->state > CAM_CTX_ACTIVATED) {
	if (ctx->state < CAM_CTX_READY || ctx->state > CAM_CTX_ACTIVATED) {
		CAM_ERR(CAM_ICP, "Invalid state icp ctx %d state %d",
			ctx->ctx_id, ctx->state);
		return -EINVAL;