Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e93f1be5 authored by Denis V. Lunev's avatar Denis V. Lunev Committed by David Woodhouse
Browse files

[MTD] [NAND] fix OOPS accessing flash operations over STM flash on PXA



STM 2Gb flash is a large-page NAND flash.  Set operations accordingly.
This field is dereferenced without a check in several places resulting in
OOPS.

Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
Acked-by: default avatarEric Miao <ymiao3@marvell.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent d9476298
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -269,6 +269,7 @@ static struct pxa3xx_nand_timing stm2GbX16_timing = {

static struct pxa3xx_nand_flash stm2GbX16 = {
	.timing = &stm2GbX16_timing,
	.cmdset	= &largepage_cmdset,
	.page_per_block = 64,
	.page_size = 2048,
	.flash_width = 16,