* grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix

NULL pointer dereference.
This commit is contained in:
Vladimir Serbinenko 2013-11-08 04:59:46 +01:00
parent d59849b2e7
commit 47dcf7b176
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
NULL pointer dereference.
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com> 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/Makefile.am: Do not include libgcc.h when compiling with * grub-core/Makefile.am: Do not include libgcc.h when compiling with

View file

@ -978,10 +978,7 @@ grub_multiboot_add_module (grub_addr_t start, grub_size_t size,
if (modules_last) if (modules_last)
modules_last->next = newmod; modules_last->next = newmod;
else else
{ modules = newmod;
modules = newmod;
modules_last->next = NULL;
}
modules_last = newmod; modules_last = newmod;
modcnt++; modcnt++;