|
@@ -2638,8 +2638,11 @@ static int __cam_req_mgr_try_cancel_req(struct cam_req_mgr_core_link *link,
|
|
case CRM_SLOT_STATUS_REQ_PENDING:
|
|
case CRM_SLOT_STATUS_REQ_PENDING:
|
|
case CRM_SLOT_STATUS_REQ_APPLIED:
|
|
case CRM_SLOT_STATUS_REQ_APPLIED:
|
|
pd = __cam_req_mgr_get_dev_pd(link, CAM_REQ_MGR_DEVICE_IFE);
|
|
pd = __cam_req_mgr_get_dev_pd(link, CAM_REQ_MGR_DEVICE_IFE);
|
|
- if (pd < 0)
|
|
|
|
|
|
+ if ((pd < 0) || (pd >= CAM_PIPELINE_DELAY_MAX)) {
|
|
|
|
+ CAM_ERR(CAM_CRM, "pd: %d link_hdl: 0x%x red_id: %d", pd,
|
|
|
|
+ link->link_hdl, flush_info->req_id);
|
|
return pd;
|
|
return pd;
|
|
|
|
+ }
|
|
|
|
|
|
if (flush_info->req_id <= link->req.prev_apply_data[pd].req_id) {
|
|
if (flush_info->req_id <= link->req.prev_apply_data[pd].req_id) {
|
|
CAM_WARN(CAM_CRM, "req %lld already applied to IFE on link 0x%x",
|
|
CAM_WARN(CAM_CRM, "req %lld already applied to IFE on link 0x%x",
|