Ignore:
Timestamp:
Mar 15, 2017, 1:53:13 PM (5 months ago)
Author:
brainslayer
Message:

fix fs detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/arch/arm/mach-cns3xxx/laguna.c

    r29549 r31672  
    11591159                        printk(KERN_EMERG "found squashfs on %X\n",offset);
    11601160                        struct squashfs_super_block *sb = (struct squashfs_super_block *) buf;
    1161                         filesyssize = sb->bytes_used;
     1161                        filesyssize = le64_to_cpu(sb->bytes_used);
    11621162                        tmplen = offset + filesyssize;
    11631163                        tmplen +=  (erasesize - 1);
     
    12191219                        sb = (struct squashfs_super_block*)block;
    12201220                        printk(KERN_EMERG "found squashfs @0x%08X magic=0x%08X\n",offset,*((__u32 *) buf));
    1221                         filesyssize = sb->bytes_used;
     1221                        filesyssize = le64_to_cpu(sb->bytes_used);
    12221222                        vfree(block);
    12231223                        tmplen = offset + filesyssize;
Note: See TracChangeset for help on using the changeset viewer.