1 --- a/drivers/mtd/bcm47xxpart.c
2 +++ b/drivers/mtd/bcm47xxpart.c
3 @@ -59,11 +59,14 @@ static int bcm47xxpart_parse(struct mtd_
7 - uint32_t blocksize = 0x10000;
8 + uint32_t blocksize = master->erasesize;
9 struct trx_header *trx;
11 int last_trx_part = -1;
13 + if (blocksize <= 0x10000)
14 + blocksize = 0x10000;
17 parts = kzalloc(sizeof(struct mtd_partition) * BCM47XXPART_MAX_PARTS,