Browse Source

msm: camera: isp: Add the value of macro CAM_SOC_MAX_BLOCK

In function cam_ife_mgr_acquire_dev, will assign
cdm_reg_map to base_array according to index, but
the array length of base_array is less than
CAM_IFE_HW_NUM_MAX now, so it may cause to array
index out of bounds. If we acquire 8 IFEs, we
need to send cdm the reg_base for all 8.

CRs-Fixed: 3250612
Change-Id: I791659e1ad72d301de89fb374d37720ce58f102b
Signed-off-by: mingpan <[email protected]>
Signed-off-by: Depeng Shao <[email protected]>
mingpan 3 years ago
parent
commit
fe66664222
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/cam_utils/cam_soc_util.h

+ 1 - 1
drivers/cam_utils/cam_soc_util.h

@@ -31,7 +31,7 @@
 #define INIT_RATE    -2
 
 /* maximum number of device block */
-#define CAM_SOC_MAX_BLOCK           7
+#define CAM_SOC_MAX_BLOCK           8
 
 /* maximum number of device base */
 #define CAM_SOC_MAX_BASE            CAM_SOC_MAX_BLOCK