]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
authorVladimir Serbinenko <phcoder@gmail.com>
Fri, 8 Nov 2013 03:59:46 +0000 (04:59 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 8 Nov 2013 03:59:46 +0000 (04:59 +0100)
NULL pointer dereference.

ChangeLog
grub-core/loader/multiboot_mbi2.c

index 4a19338f22f2a43f32dc75b340afdb156322ae8d..16a2c7fbc705ed146c1ffb80a69a1008eddbd314 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 6a6be77e21fd2dfba93c74abf8bab075e897beba..cdbeef92ca9c31122b983d53f6857a2022a87082 100644 (file)
@@ -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++;