diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-28 12:14:20 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-12-05 08:07:38 +0300 |
commit | ad2ac292635ec48fece67ce62bd7e967d9538616 (patch) | |
tree | cb542fcfe5c474c51767ef434e55672c95e0b11f | |
parent | 1f6866e0159d0c78279e8a22abe73fb39469597d (diff) | |
download | opensbi-ad2ac292635ec48fece67ce62bd7e967d9538616.tar.xz |
lib: fix fdt_parse_aclint_node()
After determining cpu_offset we have to check this variable and not
cpu_intc_offset.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
-rw-r--r-- | lib/utils/fdt/fdt_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/fdt/fdt_helper.c b/lib/utils/fdt/fdt_helper.c index 43d7857..d4b38dc 100644 --- a/lib/utils/fdt/fdt_helper.c +++ b/lib/utils/fdt/fdt_helper.c @@ -772,7 +772,7 @@ int fdt_parse_aclint_node(void *fdt, int nodeoffset, bool for_timer, continue; cpu_offset = fdt_parent_offset(fdt, cpu_intc_offset); - if (cpu_intc_offset < 0) + if (cpu_offset < 0) continue; rc = fdt_parse_hart_id(fdt, cpu_offset, &hartid); |