> + // > + // When platform recovery is not enabled, still boot to platform > default > file path. > + // > + EfiBootManagerProcessLoadOption (&PlatformDefaultBootOption); > + } > } > + EfiBootManagerFreeLoadOption (&PlatformDefaultBootOption);
PlatformDefaultBootOption might be uninitialized if FilePath is NULL. FilePath is NULL when memory allocation fails. So I am thinking maybe ASSERT (FilePath != NULL) is enough when EfiBootManagerInitializeLoadOption(). > > DEBUG ((EFI_D_ERROR, "[Bds] Unable to boot!\n")); > PlatformBootManagerUnableToBoot (); > -- > 2.21.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#41797): https://edk2.groups.io/g/devel/message/41797 Mute This Topic: https://groups.io/mt/31907730/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-