u-boot/arch/arm/mach-rmobile
Paul Barker dbada49554 arm: rmobile: Fix off-by-one error in cpuinfo
In rmobile_cpuinfo_idx() there is an off-by-one error in accessing the
rmobile_cpuinfo array.

At the end of the loop, i is equal to the array size, i.e.
rmobile_cpuinfo[i] accesses one entry past the end of the array. The
last entry in the array is a fallback value so the loop should count to
ARRAY_SIZE(rmobile_cpuinfo) - 1 instead, this will leave i equal to the
index of the fallback value if no match is found.

Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
2023-08-19 16:34:41 +02:00
..
include/mach ARM: renesas: Add R8A779G0 V4H Kconfig entry and PRR ID 2023-04-07 17:13:28 +02:00
board.c common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
cpu_info-r8a7740.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu_info-rcar.c ARM: rmobile: Identify R-Car D3 R8A77995 r1.1 SoC 2023-06-08 22:22:38 +02:00
cpu_info-rzg.c arm: mach-rmobile: Add CPU info support for RZ/G2 2021-04-13 23:36:25 +02:00
cpu_info.c arm: rmobile: Fix off-by-one error in cpuinfo 2023-08-19 16:34:41 +02:00
emac.c treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
Kconfig ARM: rmobile: Add support for Renesas RZ/N1 SoC 2023-05-13 04:01:30 +02:00
Kconfig.32 ARM: rmobile: Factor out SYS_SOC Kconfig option 2023-03-18 12:02:38 +01:00
Kconfig.64 ARM: rmobile: Add R-Car Generation 4 support 2023-04-07 14:33:46 +02:00
Kconfig.rcar3 ARM: renesas: Add R8A77980 V3HSK board and CPLD code 2023-06-08 22:26:52 +02:00
Kconfig.rcar4 ARM: renesas: Add R8A779G0 V4H White Hawk board code 2023-04-07 17:13:28 +02:00
Kconfig.rza1 ARM: rmobile: Factor out SYS_SOC Kconfig option 2023-03-18 12:02:38 +01:00
Kconfig.rzn1 ARM: rmobile: Add support for Renesas RZ/N1 SoC 2023-05-13 04:01:30 +02:00
lowlevel_init.S Migrate CUSTOM_SYS_INIT_SP_ADDR to Kconfig using system-constants.h 2022-06-06 12:09:19 -04:00
lowlevel_init_ca15.S Migrate CUSTOM_SYS_INIT_SP_ADDR to Kconfig using system-constants.h 2022-06-06 12:09:19 -04:00
lowlevel_init_gen3.S armv8: Fix and simplify branch_if_master/branch_if_slave 2022-03-02 13:59:29 -05:00
Makefile ARM: rmobile: Update little‐endian byte order option in srec_cat command 2023-08-13 00:05:38 +02:00
memmap-gen3.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pfc-r8a7740.c
pfc-r8a7790.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
psci-r8a779a0.c ARM: rmobile: Add basic PSCI support for R8A779A0 V3U Falcon 2021-06-24 20:22:18 +02:00