kboot: Fix /chosen invalidation caused by DCP changes

Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
Asahi Lina 2022-09-23 00:17:37 +09:00
parent 06826b63f7
commit 2824478dfe

View file

@ -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");
}
}