From c5b63bec2f885e2b0a475aca33c7696c59ae6965 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Thu, 13 Jun 2019 18:42:40 +0200 Subject: [PATCH] efi_loader: GetTime() must return EFI_UNSUPPORTED If the GetTime() runtime service is not supported, EFI_UNSUPPORTED has to be returned. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_runtime.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 0c57d0abd76..40fdc0ea928 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -366,8 +366,7 @@ efi_status_t __weak __efi_runtime EFIAPI efi_get_time( struct efi_time *time, struct efi_time_cap *capabilities) { - /* Nothing we can do */ - return EFI_DEVICE_ERROR; + return EFI_UNSUPPORTED; } /** -- 2.39.2