mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
OvmfPkg/QemuKernelLoaderFsDxe: drop bogus assert
Triggers when trying to get root directory info. Reproducer: * Use qemu -kernel with something edk2 can not load. * When dropped into the efi shell try inspect the file system. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
adf385ecab
commit
1111e9fe70
@ -290,7 +290,6 @@ QemuKernelBlobTypeToFileInfo (
|
||||
|
||||
NameSize = (StrLen (Name) + 1) * 2;
|
||||
FileInfoSize = OFFSET_OF (EFI_FILE_INFO, FileName) + NameSize;
|
||||
ASSERT (FileInfoSize >= sizeof *FileInfo);
|
||||
|
||||
OriginalBufferSize = *BufferSize;
|
||||
*BufferSize = FileInfoSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user