diff options
Diffstat (limited to 'platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c')
-rw-r--r-- | platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c b/platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c index c77f1bd94..35503de60 100644 --- a/platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c +++ b/platform/linux-generic/arch/aarch64/odp_sysinfo_parse.c @@ -132,7 +132,7 @@ int cpuinfo_parser(FILE *file, system_info_t *sysinfo) rev = 0; id = 0; - while (fgets(str, sizeof(str), file) != NULL && id < CONFIG_NUM_CPU) { + while (fgets(str, sizeof(str), file) != NULL && id < CONFIG_NUM_CPU_IDS) { /* Parse line by line a block of cpuinfo */ cur = strstr(str, "CPU implementer"); |