arm: imx9: Fix LPCG number in ccm_reg structure
The LPCG number on iMX93 and iMX91 is 127 not 122. The wrong value is used in ccm_reg structure and Coverity reports several issues as out-of-bounds write. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -111,7 +111,7 @@ struct ccm_reg {
|
||||
u32 reserved_3[192];
|
||||
struct ccm_lpcg_oscpll clk_oscplls[19]; /* 0x5000 */
|
||||
u32 reserved_4[2768];
|
||||
struct ccm_lpcg_oscpll clk_lpcgs[122]; /* 0x8000 */
|
||||
struct ccm_lpcg_oscpll clk_lpcgs[127]; /* 0x8000 */
|
||||
};
|
||||
|
||||
struct ana_pll_reg_elem {
|
||||
|
||||
Reference in New Issue
Block a user