--- zzzz-none-000/linux-3.10.107/drivers/mtd/ssfdc.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/mtd/ssfdc.c 2021-02-04 17:41:59.000000000 +0000 @@ -290,7 +290,7 @@ int cis_sector; /* Check for small page NAND flash */ - if (mtd->type != MTD_NANDFLASH || mtd->oobsize != OOB_SIZE || + if (!mtd_type_is_nand(mtd) || mtd->oobsize != OOB_SIZE || mtd->size > UINT_MAX) return;