提交 578d7cc8 编写于 作者: H Heinrich Schuchardt

efi_loader: remove duplicate image size check

The image size is checked in efi_load_pe(). Avoid checking it twice.
Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
上级 5b94e26f
......@@ -1883,10 +1883,6 @@ efi_status_t EFIAPI efi_load_image(bool boot_policy,
if (ret != EFI_SUCCESS)
goto error;
} else {
if (!source_size) {
ret = EFI_LOAD_ERROR;
goto error;
}
dest_buffer = source_buffer;
}
/* split file_path which contains both the device and file parts */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册