summaryrefslogtreecommitdiffstats
path: root/src/interface
diff options
context:
space:
mode:
authorMichael Brown2021-01-26 12:30:50 +0100
committerMichael Brown2021-01-26 12:30:50 +0100
commitade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e (patch)
tree0c3619312eef53e48497fa7ef6f8f0bc2f91e9bd /src/interface
parent[efi] Automatically load "/autoexec.ipxe" when booted from a filesystem (diff)
downloadipxe-ade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e.tar.gz
ipxe-ade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e.tar.xz
ipxe-ade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e.zip
[efi] Fix use of uninitialised variable
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/efi/efi_autoboot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface/efi/efi_autoboot.c b/src/interface/efi/efi_autoboot.c
index 33a780f5b..6e8f9df63 100644
--- a/src/interface/efi/efi_autoboot.c
+++ b/src/interface/efi/efi_autoboot.c
@@ -194,6 +194,9 @@ static int efi_load_autoexec ( EFI_HANDLE device ) {
DBGC ( device, "EFI %s found %ls\n",
efi_handle_name ( device ), name );
+ /* Success */
+ rc = 0;
+
err_read:
if ( data )
bs->FreePool ( data );