Ignore:
Timestamp:
Mar 13, 2017, 11:28:42 AM (4 months ago)
Author:
brainslayer
Message:

its big endian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/mtd/nand/ath_nand.c

    r31630 r31646  
    14071407        while (base < mtd->size) {
    14081408                mtd_read(mtd,offset,512,&retlen,&buf[0]);
    1409                 if (*((__u32 *)buf) == SQUASHFS_MAGIC)
     1409                if (*((__u32 *)buf) == SQUASHFS_MAGIC_SWAP)
    14101410                    bbuf = buf;
    14111411                else
    1412                 if (*((__u32 *)&buf[128]) == SQUASHFS_MAGIC)
     1412                if (*((__u32 *)&buf[128]) == SQUASHFS_MAGIC_SWAP)
    14131413                {
    14141414                    bbuf = &buf[128];
Note: See TracChangeset for help on using the changeset viewer.