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

fix fs detection

File:
1 edited

Legend:

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

    r20075 r31672  
    845845                //      printk(KERN_EMERG "found squashfs\n");
    846846                        struct squashfs_super_block *sb = (struct squashfs_super_block *) buf;
    847                         filesyssize = sb->bytes_used;
     847                        filesyssize = le64_to_cpu(sb->bytes_used);
    848848                        tmplen = offset + filesyssize;
    849849                        tmplen +=  (erasesize - 1);
     
    905905                        sb = (struct squashfs_super_block*)block;
    906906                        printk(KERN_EMERG "found squashfs @0x%08X magic=0x%08X\n",offset,*((__u32 *) buf));
    907                         filesyssize = sb->bytes_used;
     907                        filesyssize = le64_to_cpu(sb->bytes_used);
    908908                        vfree(block);
    909909                        tmplen = offset + filesyssize;
Note: See TracChangeset for help on using the changeset viewer.