From d2c9149525d675775f53b963de5cb93dbc608c19 Mon Sep 17 00:00:00 2001 From: Download-Fritz Date: Sun, 13 Oct 2019 18:53:04 +0200 Subject: [PATCH] OcBootManagementLib: Avoid incorrect error propagation from the last entry scanned --- Library/OcBootManagementLib/OcBootManagementLib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/OcBootManagementLib/OcBootManagementLib.c b/Library/OcBootManagementLib/OcBootManagementLib.c index c17a685b..25175d62 100644 --- a/Library/OcBootManagementLib/OcBootManagementLib.c +++ b/Library/OcBootManagementLib/OcBootManagementLib.c @@ -310,6 +310,10 @@ OcScanForBootEntries ( return EFI_OUT_OF_RESOURCES; } } + // + // Errors from within the loop are not fatal. + // + Status = EFI_SUCCESS; FreePool (Handles);