[efi] Fix use of uninitialised variable

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2021-01-26 11:30:50 +00:00
parent a3f1e8fb67
commit ade4d2b4fe

View File

@@ -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 );