Re: [PATCH] arm: rmobile: Fix off-by-one error in cpuinfo

2023-08-19 Thread Marek Vasut
On 8/18/23 15:17, Paul Barker wrote: 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

[PATCH] arm: rmobile: Fix off-by-one error in cpuinfo

2023-08-18 Thread Paul Barker
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 ARRA