]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Reset root directory when installing EFI_SIMPLE_FILE_SYSTEM_PROTOCOL
authorMichael Brown <mcb30@ipxe.org>
Tue, 6 Oct 2015 23:21:34 +0000 (00:21 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 7 Oct 2015 07:34:27 +0000 (08:34 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_file.c

index 3715b70bf9dbd004625a58a0b8ff550b7c05fc03..05eadc97141bb4344b3a9a81bbf5809b2c49d09c 100644 (file)
@@ -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