From: Michael Brown Date: Tue, 6 Oct 2015 23:21:34 +0000 (+0100) Subject: [efi] Reset root directory when installing EFI_SIMPLE_FILE_SYSTEM_PROTOCOL X-Git-Tag: v1.20.1~677 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1880691774f276acad0cce76a555cdeb80422a28;p=thirdparty%2Fipxe.git [efi] Reset root directory when installing EFI_SIMPLE_FILE_SYSTEM_PROTOCOL Signed-off-by: Michael Brown --- diff --git a/src/interface/efi/efi_file.c b/src/interface/efi/efi_file.c index 3715b70bf..05eadc971 100644 --- a/src/interface/efi/efi_file.c +++ b/src/interface/efi/efi_file.c @@ -614,6 +614,9 @@ int efi_file_install ( EFI_HANDLE handle ) { EFI_STATUS efirc; int rc; + /* Reset root directory state */ + efi_file_root.pos = 0; + /* Install the simple file system protocol, block I/O * protocol, and disk I/O protocol. We don't have a block * device, but large parts of the EDK2 codebase make the