In the context of the implementation of the EFI_LOAD_FILE2_PROTOCOL for the initial ramdisk it was observed that opening the SNP protocol failed (https://lists.gnu.org/archive/html/grub-devel/2021-10/msg00020.html). This is due to an incorrect call to CloseProtocol().
This is corrected in the first patch. The second patch provides a new function grub_efi_close_protocol() to simplify the coding. Heinrich Schuchardt (2): efinet: correct closing of SNP protocol efi: library function grub_efi_close_protocol() grub-core/kern/efi/efi.c | 18 ++++++++++++++++++ grub-core/net/drivers/efi/efinet.c | 30 +++++++++++++++++++++--------- include/grub/efi/efi.h | 3 +++ 3 files changed, 42 insertions(+), 9 deletions(-) -- 2.32.0 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel