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

Commit 30591aaa authored by Jigarkumar Zala's avatar Jigarkumar Zala Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: isp: Move label to correct error request id



In case of empty pending request list, error request id needs to be
initialized properly. Moving error handling label fixes this issue.

Change-Id: Ice789c00f651534b6ad0431fc185c1f75106c17e
Signed-off-by: default avatarJigarkumar Zala <jzala@codeaurora.org>
parent c99238b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1138,6 +1138,7 @@ static int __cam_isp_ctx_handle_error(struct cam_isp_context *ctx_isp,
		}
	}

end:
	do {
		if (list_empty(&ctx->pending_req_list)) {
			error_request_id = ctx_isp->last_applied_req_id + 1;
@@ -1167,7 +1168,6 @@ static int __cam_isp_ctx_handle_error(struct cam_isp_context *ctx_isp,

	} while (req->request_id < ctx_isp->last_applied_req_id);

end:
	if (ctx->ctx_crm_intf && ctx->ctx_crm_intf->notify_err) {
		notify.link_hdl = ctx->link_hdl;
		notify.dev_hdl = ctx->dev_hdl;