diff --git a/src/system/kernel/platform/u-boot/openfirmware.cpp b/src/system/kernel/platform/u-boot/openfirmware.cpp index 9d2431551c..9a56ce93ce 100644 --- a/src/system/kernel/platform/u-boot/openfirmware.cpp +++ b/src/system/kernel/platform/u-boot/openfirmware.cpp @@ -56,6 +56,9 @@ static int fdt2of(int err) status_t of_init(int (*openFirmwareEntry)(void *)) { + if (gFDT == NULL) + return OF_FAILED; + gChosen = fdt2of(fdt_path_offset(gFDT, "/chosen")); if (gChosen == OF_FAILED)