boot: Do not warn if an initializing driver returns EFI_ABORTED

Fixes: #21965
This commit is contained in:
Jan Janssen
2022-01-03 19:42:36 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent 7185af6234
commit 8fb16fee96
+7 -2
View File
@@ -43,8 +43,13 @@ static EFI_STATUS load_one_driver(
return log_error_status_stall(EFI_INVALID_PARAMETER, L"Image %s is not a driver, refusing: %r", fname);
err = BS->StartImage(image, NULL, NULL);
if (EFI_ERROR(err))
return log_error_status_stall(err, L"Failed to start image %s: %r", fname, err);
if (EFI_ERROR(err)) {
/* EFI_ABORTED signals an initializing driver. It uses this error code on success
* so that it is unloaded after. */
if (err != EFI_ABORTED)
log_error_stall(L"Failed to start image %s: %r", fname, err);
return err;
}
TAKE_PTR(image);
return EFI_SUCCESS;