summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <[email protected]>2025-09-19 14:58:34 +0800
committerFabio Estevam <[email protected]>2025-09-21 09:08:50 -0300
commit2d7a6f19bbbc0f5eaff79b50497a1b4af1717432 (patch)
treedd8f29e314b9c590fe7507f64ede75d2ac1b9646
parentaee235798724fd041af21460e7f6ba02bdeedaeb (diff)
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 <[email protected]> Reviewed-by: Peng Fan <[email protected]>
-rw-r--r--arch/arm/include/asm/arch-imx9/clock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-imx9/clock.h b/arch/arm/include/asm/arch-imx9/clock.h
index ffaf6b5f7d8..ddc84d2c9ed 100644
--- a/arch/arm/include/asm/arch-imx9/clock.h
+++ b/arch/arm/include/asm/arch-imx9/clock.h
@@ -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 {