Selaa lähdekoodia

[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 8 vuotta sitten
vanhempi
commit
1880691774
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3
    0
      src/interface/efi/efi_file.c

+ 3
- 0
src/interface/efi/efi_file.c Näytä tiedosto

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

Loading…
Peruuta
Tallenna