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

Commit 95d14e40 authored by Ayush Kumar's avatar Ayush Kumar 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.

Change-Id: I0b1e7086351b9438fd72a6d824bc20c8213b5ea8
Signed-off-by: default avatarAyush Kumar <ayushkr@codeaurora.org>
parent 544f6bf0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3363,7 +3363,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_cpu_buf;
	}

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