]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Add missing parenthesis for conditional statement stanza.
authorjerone <jerone@localhost>
Wed, 18 Apr 2007 22:59:52 +0000 (22:59 +0000)
committerjerone <jerone@localhost>
Wed, 18 Apr 2007 22:59:52 +0000 (22:59 +0000)
ChangeLog
kern/elf.c

index bcacdce64e2532083d8101a7325fc787a97326f5..07ea635594deac6656dfb8ed83a4e2ee1edf0df5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-18  Jerone Young  <jerone@gmail.com>
+
+       * kernel/elf.c: Add missing parenthesis for conditional statement 
+       stanza.
+
 2007-04-10  Jerone Young  <jerone@gmail.com>
 
        * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
index 4d616cc74b420d606f483188bc4279fa8be3153f..f05048e18650ff5aee89280113f5225b1fc4c48a 100644 (file)
@@ -432,12 +432,14 @@ grub_elf64_load (grub_elf_t _elf, grub_elf64_load_hook_t _load_hook,
        grub_ssize_t read;
        read = grub_file_read (elf->file, (void *) load_addr, phdr->p_filesz);
        if (read != (grub_ssize_t) phdr->p_filesz)
-         /* XXX How can we free memory from `load_hook'?  */
-         grub_error_push ();
-         return grub_error (GRUB_ERR_BAD_OS,
-                            "Couldn't read segment from file: "
-                            "wanted 0x%lx bytes; read 0x%lx bytes.",
-                            phdr->p_filesz, read);
+          {
+           /* XXX How can we free memory from `load_hook'?  */
+           grub_error_push ();
+           return grub_error (GRUB_ERR_BAD_OS,
+                             "Couldn't read segment from file: "
+                             "wanted 0x%lx bytes; read 0x%lx bytes.",
+                             phdr->p_filesz, read);
+          }
       }
 
     if (phdr->p_filesz < phdr->p_memsz)