|
@@ -142,6 +142,14 @@ static int cam_isp_update_dual_config(
|
|
|
}
|
|
|
|
|
|
hw_mgr_res = &res_list_isp_out[i];
|
|
|
+ if (!hw_mgr_res) {
|
|
|
+ CAM_ERR(CAM_ISP,
|
|
|
+ "Invalid isp out resource i %d num_out_res %d",
|
|
|
+ i, dual_config->num_ports);
|
|
|
+ rc = -EINVAL;
|
|
|
+ goto end;
|
|
|
+ }
|
|
|
+
|
|
|
for (j = 0; j < CAM_ISP_HW_SPLIT_MAX; j++) {
|
|
|
if (!hw_mgr_res->hw_res[j])
|
|
|
continue;
|