mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Conflicts: ChangeLog
This commit is contained in:
commit
fadddc260a
2 files changed
+18
-5
No files matched your search
@@ -246,6 +246,8 @@ grub_install_register_efi (grub_device_t efidir_grub_dev,
|
||||
void *current = NULL;
|
||||
ssize_t current_len;
|
||||
current = get_efi_variable_bootn (i, ¤t_len);
|
||||
if (current_len < 0)
|
||||
continue; /* FIXME Should we abort on error? */
|
||||
if (current_len < (distrib16_len + 1) * sizeof (grub_uint16_t)
|
||||
+ 6)
|
||||
{
|
||||
@@ -275,13 +277,18 @@ grub_install_register_efi (grub_device_t efidir_grub_dev,
|
||||
void *current = NULL;
|
||||
ssize_t current_len;
|
||||
current = get_efi_variable_bootn (i, ¤t_len);
|
||||
if (current_len < -1)
|
||||
continue; /* FIXME Should we abort on error? */
|
||||
if (current_len == -1)
|
||||
{
|
||||
order_num = i;
|
||||
have_order_num = 1;
|
||||
grub_util_info ("Creating new entry at Boot%04x",
|
||||
order_num);
|
||||
break;
|
||||
if (!have_order_num)
|
||||
{
|
||||
order_num = i;
|
||||
have_order_num = 1;
|
||||
grub_util_info ("Creating new entry at Boot%04x",
|
||||
order_num);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (current_len < (distrib16_len + 1) * sizeof (grub_uint16_t)
|
||||
+ 6)
|
||||
|
||||
Reference in new issue
Block a user