get_entry: return entry if it was found before reaching the end of the list

Resolves: RHEL-145517

Signed-off-by: Josue Hernandez <josherna@redhat.com>
This commit is contained in:
Josue Hernandez 2026-02-25 09:48:00 -06:00
parent ba615a0f41
commit b4d0ff66c1
3 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: kmicki <1463619+kmicki@users.noreply.github.com>
Date: Tue, 15 Nov 2022 14:37:25 +0100
Subject: [PATCH] Update efibootmgr.c
get_entry: return entry if it was found before reaching the end of the list
Signed-off-by: kmicki <1463619+kmicki@users.noreply.github.com>
---
src/efibootmgr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/efibootmgr.c b/src/efibootmgr.c
index b980bcd..4b15d6d 100644
--- a/src/efibootmgr.c
+++ b/src/efibootmgr.c
@@ -1192,6 +1192,7 @@ get_entry(list_t *entries, uint16_t num)
entry = NULL;
continue;
}
+ return entry;
}
return entry;

View File

@ -0,0 +1 @@
Patch0001: 0001-Update-efibootmgr.c.patch

View File

@ -2,7 +2,7 @@
Name: efibootmgr
Version: 18
Release: 8%{?dist}
Release: 9%{?dist}
Summary: EFI Boot Manager
License: GPL-2.0-or-later
URL: https://github.com/rhboot/%{name}/
@ -46,6 +46,10 @@ git config --local --add efibootmgr.efidir %{efi_vendor}
%doc README
%changelog
* Wed Feb 25 2026 Josue David Hernandez Gutierrez <josherna@redhat.com>
- get_entry: return entry if it was found before reaching the end of the list
Resolves: RHEL-145517
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com>
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018