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

    r31670 r31672  
    744744        }
    745745
    746         if (sb.bytes_used <= 0) {
     746        if (le64_to_cpu(sb->bytes_used) <= 0) {
    747747                printk(KERN_ALERT "split_squashfs: squashfs is empty in \"%s\"\n",
    748748                        master->name);
     
    751751        }
    752752
    753         len = sb.bytes_used;
     753        len = le64_to_cpu(sb->bytes_used);
    754754        len += (offset & 0x000fffff);
    755755        len +=  (master->erasesize - 1);
Note: See TracChangeset for help on using the changeset viewer.