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

fix fs detection

File:
1 edited

Legend:

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

    r19011 r31672  
    834834                //      printk(KERN_EMERG "found squashfs\n");
    835835                        struct squashfs_super_block *sb = (struct squashfs_super_block *) buf;
    836                         filesyssize = sb->bytes_used;
     836                        filesyssize = le64_to_cpu(sb->bytes_used);
    837837                        tmplen = offset + filesyssize;
    838838                        tmplen +=  (erasesize - 1);
     
    894894                        sb = (struct squashfs_super_block*)block;
    895895                        printk(KERN_EMERG "found squashfs @0x%08X magic=0x%08X\n",offset,*((__u32 *) buf));
    896                         filesyssize = sb->bytes_used;
     896                        filesyssize = le64_to_cpu(sb->bytes_used);
    897897                        vfree(block);
    898898                        tmplen = offset + filesyssize;
Note: See TracChangeset for help on using the changeset viewer.