efi: translate errno to EFI status on exit

Translate the given errno to an efi status instead of always exiting
with EFI_LOAD_ERROR.
This commit is contained in:
Ahmad Khalifa
2025-09-09 20:19:59 +03:00
parent 18141961df
commit 101a35e84d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -299,9 +299,9 @@ efi_exit(EFI_STATUS s)
}
void
exit(int error __unused)
exit(int error)
{
efi_exit(EFI_LOAD_ERROR);
efi_exit(errno_to_efi_status(error));
}
/*
+1 -1
View File
@@ -49,7 +49,7 @@ void
exit(int status)
{
efi_exit(EFI_LOAD_ERROR);
efi_exit(errno_to_efi_status(status));
}
static CHAR16 *