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

fix fs detection

File:
1 edited

Legend:

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

    r30843 r31672  
    11741174                        printk(KERN_EMERG "found squashfs on %X\n",offset);
    11751175                        struct squashfs_super_block *sb = (struct squashfs_super_block *) buf;
    1176                         filesyssize = sb->bytes_used;
     1176                        filesyssize = le64_to_cpu(sb->bytes_used);
    11771177                        tmplen = offset + filesyssize;
    11781178                        tmplen +=  (erasesize - 1);
     
    12341234                        sb = (struct squashfs_super_block*)block;
    12351235                        printk(KERN_EMERG "found squashfs @0x%08X magic=0x%08X\n",offset,*((__u32 *) buf));
    1236                         filesyssize = sb->bytes_used;
     1236                        filesyssize = le64_to_cpu(sb->bytes_used);
    12371237                        vfree(block);
    12381238                        tmplen = offset + filesyssize;
Note: See TracChangeset for help on using the changeset viewer.