From 2824478dfec20a8a5f2231693d2820647d571803 Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Fri, 23 Sep 2022 00:17:37 +0900 Subject: [PATCH] kboot: Fix /chosen invalidation caused by DCP changes Signed-off-by: Asahi Lina --- src/kboot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kboot.c b/src/kboot.c index d905a48e..355216c4 100644 --- a/src/kboot.c +++ b/src/kboot.c @@ -421,6 +421,9 @@ static int dt_set_chosen(void) if (rnode >= 0) { dt_dart_reserve_vram(); dt_carveout_reserved_regions(disp_reserved_regions, ARRAY_SIZE(disp_reserved_regions)); + + // Previous calls might invalidate /chosen, get it again + node = fdt_path_offset(dt, "/chosen"); } }