* fs/ext2.c (grub_ext2_read_block): Take endianness into account when
checking inode flags for EXT4_EXTENTS_FLAG.
+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
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;