ia64: Reset grub_errno on failure to allocate
PATCH 1/1 ia64: 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 <[email protected]>
--- grub-core/loader/ia64/efi/linux.c | 1 + 1 file changed, 1 insertion(+)
grub-core/loader/ia64/efi/linux.c +1 -0
@@ -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 ))
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 4 lines · Vladimir Serbinenko
The code goes on to allocate memory in another region on failure, hence it should discard the error.
Signed-off-by Vladimir Serbinenko <[email protected]>
Reviewed-by Daniel Kiper <[email protected]>
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel