j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Wed Jun 23 23:02:12 2010 New Revision: 797 URL: http://tracker.coreboot.org/trac/openbios/changeset/797
Log: ext2 magic is stored in little-endian format, not big-endian format.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@siriusit.co.uk
Modified: trunk/openbios-devel/fs/ext2/ext2_utils.c
Modified: trunk/openbios-devel/fs/ext2/ext2_utils.c ============================================================================== --- trunk/openbios-devel/fs/ext2/ext2_utils.c Wed Jun 23 22:41:34 2010 (r796) +++ trunk/openbios-devel/fs/ext2/ext2_utils.c Wed Jun 23 23:02:12 2010 (r797) @@ -20,7 +20,7 @@ seek_io(fd, 2 * 512 + offset); read_io(fd, super, sizeof (*super));
- if (__be16_to_cpu(super->s_magic) != EXT2_SUPER_MAGIC) { + if (__le16_to_cpu(super->s_magic) != EXT2_SUPER_MAGIC) { free(super); return 0; }