summaryrefslogtreecommitdiffstats
path: root/src/interface/efi
diff options
context:
space:
mode:
authorMichael Brown2015-10-07 01:21:34 +0200
committerMichael Brown2015-10-07 09:34:27 +0200
commit1880691774f276acad0cce76a555cdeb80422a28 (patch)
tree7b4775f3c76b06331721d730f16be321690efe4c /src/interface/efi
parent[http] Verify server port when reusing a pooled connection (diff)
downloadipxe-1880691774f276acad0cce76a555cdeb80422a28.tar.gz
ipxe-1880691774f276acad0cce76a555cdeb80422a28.tar.xz
ipxe-1880691774f276acad0cce76a555cdeb80422a28.zip
[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')
-rw-r--r--src/interface/efi/efi_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface/efi/efi_file.c b/src/interface/efi/efi_file.c
index 3715b70b..05eadc97 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