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

[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
...@@ -269,6 +269,7 @@ static struct pxa3xx_nand_timing stm2GbX16_timing = { ...@@ -269,6 +269,7 @@ static struct pxa3xx_nand_timing stm2GbX16_timing = {
static struct pxa3xx_nand_flash stm2GbX16 = { static struct pxa3xx_nand_flash stm2GbX16 = {
.timing = &stm2GbX16_timing, .timing = &stm2GbX16_timing,
.cmdset = &largepage_cmdset,
.page_per_block = 64, .page_per_block = 64,
.page_size = 2048, .page_size = 2048,
.flash_width = 16, .flash_width = 16,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment