* grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure

if it happens.
This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2011-06-27 13:57:03 +02:00
1 parent 5ff1d945ed
commit d0b526b277
2 files changed
+11 -1

No files matched your search

+6 -1
View File
@@ -1322,6 +1322,11 @@ grub_bsd_load (int argc, char *argv[])
goto fail;
relocator = grub_relocator_new ();
if (!relocator)
{
grub_file_close (file);
goto fail;
}
elf = grub_elf_file (file);
if (elf)
@@ -1343,7 +1348,7 @@ grub_bsd_load (int argc, char *argv[])
fail:
if (grub_errno != GRUB_ERR_NONE)
grub_dl_unref (my_mod);
grub_dl_unref (my_mod);
return grub_errno;
}