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.10/drivers/mtd/mtdpart.c

    r31660 r31672  
    714714        }
    715715
    716         if (sb.bytes_used <= 0) {
     716        if (le64_to_cpu(sb->bytes_used) <= 0) {
    717717                printk(KERN_ALERT "split_squashfs: squashfs is empty in \"%s\"\n",
    718718                        master->name);
     
    721721        }
    722722
    723         len = sb.bytes_used;
     723        len = le64_to_cpu(sb->bytes_used);
    724724        len += (offset & 0x000fffff);
    725725        len +=  (((master->erasesize<65536)?65536:master->erasesize) - 1);
Note: See TracChangeset for help on using the changeset viewer.