Merge "msm: camera: isp: Fix incorrect bound check for ife out resource id" into camera-kernel.lnx.7.0

This commit is contained in:
cheese Service 2024-07-26 02:35:29 -07:00 committed by Gerrit - the friendly Code Review server
commit c5925b09c8

View File

@ -802,8 +802,7 @@ static inline bool cam_ife_hw_mgr_is_ife_out_port(uint32_t res_id)
bool is_ife_out = false;
if ((res_id >= CAM_ISP_IFE_OUT_RES_BASE) &&
(res_id <= (CAM_ISP_IFE_OUT_RES_BASE +
max_ife_out_res)))
(res_id < (CAM_ISP_IFE_OUT_RES_BASE + max_ife_out_res)))
is_ife_out = true;
return is_ife_out;