* grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
NULL pointer dereference.
This commit is contained in:
parent
d59849b2e7
commit
47dcf7b176
2 changed files with 6 additions and 4 deletions
|
@ -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>
|
||||
|
||||
* grub-core/Makefile.am: Do not include libgcc.h when compiling with
|
||||
|
|
|
@ -978,10 +978,7 @@ grub_multiboot_add_module (grub_addr_t start, grub_size_t size,
|
|||
if (modules_last)
|
||||
modules_last->next = newmod;
|
||||
else
|
||||
{
|
||||
modules = newmod;
|
||||
modules_last->next = NULL;
|
||||
}
|
||||
modules = newmod;
|
||||
modules_last = newmod;
|
||||
|
||||
modcnt++;
|
||||
|
|
Loading…
Reference in a new issue