]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-03-18 Michel Dänzer <michel@daenzer.net>
authorfzielcke <fzielcke@localhost>
Thu, 19 Mar 2009 09:36:52 +0000 (09:36 +0000)
committerfzielcke <fzielcke@localhost>
Thu, 19 Mar 2009 09:36:52 +0000 (09:36 +0000)
* fs/ext2.c (grub_ext2_read_block): Take endianness into account when
checking inode flags for EXT4_EXTENTS_FLAG.

ChangeLog
fs/ext2.c

index 6c94b93a2449b7e155d611f80261af68985e2f24..436bd57ef740b75ff69bbb9b76c12953943c3e5e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-18  Michel Dänzer  <michel@daenzer.net>
+
+       * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
+       checking inode flags for EXT4_EXTENTS_FLAG.
+
 2009-03-18  Robert Millan  <rmh@aybabtu.com>
 
        * loader/i386/linux.c: Include `<grub/video.h>' and
index ac0757e7c4db5e79ef5e8e9ae5bdbd2f1240162a..46524617141c296977610825362938f9a7e5fa82 100644 (file)
--- a/fs/ext2.c
+++ b/fs/ext2.c
@@ -385,7 +385,7 @@ grub_ext2_read_block (grub_fshelp_node_t node, grub_disk_addr_t fileblock)
   unsigned int blksz = EXT2_BLOCK_SIZE (data);
   int log2_blksz = LOG2_EXT2_BLOCK_SIZE (data);
   
-  if (inode->flags & EXT4_EXTENTS_FLAG)
+  if (grub_le_to_cpu32(inode->flags) & EXT4_EXTENTS_FLAG)
     {
       char buf[EXT2_BLOCK_SIZE(data)];
       struct grub_ext4_extent_header *leaf;