loader/ia64/efi/linux: Reset grub_errno on failure to allocate
The code goes on to allocate memory in another region on failure, hence it should discard the error. Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
6504a8d4bd
commit
223fcf8084
@ -383,6 +383,7 @@ grub_load_elf64 (grub_file_t file, void *buffer, const char *filename)
|
||||
{
|
||||
kernel_mem = grub_efi_allocate_fixed (low_addr, kernel_pages);
|
||||
reloc_offset = 0;
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
}
|
||||
/* Try to relocate. */
|
||||
if (! kernel_mem && (!relocate || grub_strcmp (relocate, "off") != 0))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user