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 <quic_mingpan@quicinc.com>
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
This commit is contained in:
mingpan
2022-07-22 17:01:21 +08:00
committed by Camera Software Integration
parent 8f0ed15532
commit fe66664222

View File

@@ -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