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

fix fs detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/drivers/mtd/mtdpart.c

    r31671 r31672  
    728728        }
    729729
    730         if (sb.bytes_used <= 0) {
     730        if (le64_to_cpu(sb->bytes_used) <= 0) {
    731731                printk(KERN_ALERT "split_squashfs: squashfs is empty in \"%s\"\n",
    732732                        master->name);
     
    735735        }
    736736
    737         len = sb.bytes_used;
     737        len = le64_to_cpu(sb->bytes_used);
    738738        len += (offset & 0x000fffff);
    739739        len +=  (master->erasesize - 1);
Note: See TracChangeset for help on using the changeset viewer.