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: Venkat Chinta <vchinta@codeaurora.org>
This commit is contained in:
parent
aa2e549641
commit
8c91109b74
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user