Browse Source

[efi] Reset root directory when installing EFI_SIMPLE_FILE_SYSTEM_PROTOCOL

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 years ago
parent
commit
1880691774
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/interface/efi/efi_file.c

+ 3
- 0
src/interface/efi/efi_file.c View File

614
 	EFI_STATUS efirc;
614
 	EFI_STATUS efirc;
615
 	int rc;
615
 	int rc;
616
 
616
 
617
+	/* Reset root directory state */
618
+	efi_file_root.pos = 0;
619
+
617
 	/* Install the simple file system protocol, block I/O
620
 	/* Install the simple file system protocol, block I/O
618
 	 * protocol, and disk I/O protocol.  We don't have a block
621
 	 * protocol, and disk I/O protocol.  We don't have a block
619
 	 * device, but large parts of the EDK2 codebase make the
622
 	 * device, but large parts of the EDK2 codebase make the

Loading…
Cancel
Save