diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-10-07 00:21:34 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-10-07 08:34:27 +0100 |
commit | 1880691774f276acad0cce76a555cdeb80422a28 (patch) | |
tree | 7b4775f3c76b06331721d730f16be321690efe4c /src/interface/efi/efi_file.c | |
parent | 3bd0d340f41683055c077eacbefd250b026cb649 (diff) | |
download | ipxe-1880691774f276acad0cce76a555cdeb80422a28.zip ipxe-1880691774f276acad0cce76a555cdeb80422a28.tar.gz ipxe-1880691774f276acad0cce76a555cdeb80422a28.tar.bz2 |
[efi] Reset root directory when installing EFI_SIMPLE_FILE_SYSTEM_PROTOCOL
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_file.c')
-rw-r--r-- | src/interface/efi/efi_file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface/efi/efi_file.c b/src/interface/efi/efi_file.c index 3715b70..05eadc9 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 |