|
@@ -139,6 +139,10 @@ static int cam_cre_bus_rd_update(struct cam_cre_hw *cam_cre_hw_info,
|
|
|
|
|
|
in_port_idx =
|
|
in_port_idx =
|
|
cam_cre_bus_rd_in_port_idx(io_buf->resource_type);
|
|
cam_cre_bus_rd_in_port_idx(io_buf->resource_type);
|
|
|
|
+ if (in_port_idx < 0) {
|
|
|
|
+ CAM_ERR(CAM_CRE, "Invalid in_port_idx for resource %d", io_buf->resource_type);
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
|
|
CAM_DBG(CAM_CRE, "in_port_idx %d", in_port_idx);
|
|
CAM_DBG(CAM_CRE, "in_port_idx %d", in_port_idx);
|
|
for (k = 0; k < io_buf->num_planes; k++) {
|
|
for (k = 0; k < io_buf->num_planes; k++) {
|