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.
v2:
do not open SNP protocol non-exclusively
adjust code style
Heinrich Schuchardt (2):
efinet: correct closing of SNP protocol
efi: library function grub_efi_close_protocol()
grub-core/kern/efi/efi.c | 12 ++++++++++++
grub-core/net/drivers/efi/efinet.c | 29 +++++++++++++++++++----------
include/grub/efi/efi.h | 3 +++
3 files changed, 34 insertions(+), 10 deletions(-)
--
2.32.0
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel