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

Commit 8c91109b authored by Venkat Chinta's avatar Venkat Chinta Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: core: Change return type



Return different error number when new requests and update
packets are rejected due to bad request ID. This allows
userspace to differentiate this specific reason for failure.

CRs-Fixed: 2518451
Change-Id: I0400c6f2b2e0baf99bee4b4a3736bb1eab646627
Signed-off-by: default avatarVenkat Chinta <vchinta@codeaurora.org>
parent aa2e5496
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2920,7 +2920,7 @@ static int __cam_isp_ctx_config_dev_in_top_state(
		CAM_INFO(CAM_ISP,
			"request %lld has been flushed, reject packet",
			packet->header.request_id);
		rc = -EINVAL;
		rc = -EBADR;
		goto free_req;
	}

+1 −1
Original line number Diff line number Diff line
@@ -3209,7 +3209,7 @@ int cam_req_mgr_schedule_request(
		CAM_INFO(CAM_CRM,
			"request %lld is flushed, last_flush_id to flush %d",
			sched_req->req_id, link->last_flush_id);
		rc = -EINVAL;
		rc = -EBADR;
		goto end;
	}