mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 20:43:32 +00:00
dbada49554
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> |
||
---|---|---|
.. | ||
include/mach | ||
board.c | ||
cpu_info-r8a7740.c | ||
cpu_info-rcar.c | ||
cpu_info-rzg.c | ||
cpu_info.c | ||
emac.c | ||
Kconfig | ||
Kconfig.32 | ||
Kconfig.64 | ||
Kconfig.rcar3 | ||
Kconfig.rcar4 | ||
Kconfig.rza1 | ||
Kconfig.rzn1 | ||
lowlevel_init.S | ||
lowlevel_init_ca15.S | ||
lowlevel_init_gen3.S | ||
Makefile | ||
memmap-gen3.c | ||
pfc-r8a7740.c | ||
pfc-r8a7790.h | ||
psci-r8a779a0.c |