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

fix fs detection

File:
1 edited

Legend:

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

    r29547 r31672  
    11631163                //      printk(KERN_EMERG "found squashfs\n");
    11641164                        struct squashfs_super_block *sb = (struct squashfs_super_block *) buf;
    1165                         filesyssize = sb->bytes_used;
     1165                        filesyssize = le64_to_cpu(sb->bytes_used);
    11661166                        tmplen = offset + filesyssize;
    11671167                        tmplen +=  (erasesize - 1);
     
    12231223                        sb = (struct squashfs_super_block*)block;
    12241224                        printk(KERN_EMERG "found squashfs @0x%08X magic=0x%08X\n",offset,*((__u32 *) buf));
    1225                         filesyssize = sb->bytes_used;
     1225                        filesyssize = le64_to_cpu(sb->bytes_used);
    12261226                        vfree(block);
    12271227                        tmplen = offset + filesyssize;
Note: See TracChangeset for help on using the changeset viewer.