projects
/
platform
/
kernel
/
opensbi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f6866e
)
lib: fix fdt_parse_aclint_node()
author
Heinrich Schuchardt
<heinrich.schuchardt@canonical.com>
Mon, 28 Nov 2022 09:14:20 +0000
(10:14 +0100)
committer
Anup Patel
<anup@brainfault.org>
Mon, 5 Dec 2022 05:07:38 +0000
(10:37 +0530)
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>
lib/utils/fdt/fdt_helper.c
patch
|
blob
|
history
diff --git
a/lib/utils/fdt/fdt_helper.c
b/lib/utils/fdt/fdt_helper.c
index
43d7857
..
d4b38dc
100644
(file)
--- 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);