summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorDenis V. Lunev <den@parallels.com>2008-12-03 11:47:20 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-12-03 11:47:20 +0100
commite93f1be503efd0e44e46fc1fd4c13dbee72a6561 (patch)
treeb428e3750c8ed3f7131d41905215b75443952303 /drivers/mtd
parent[MTD] [NAND] drivers/mtd/nand/pasemi_nand.c: Add missing pci_dev_put (diff)
downloadlinux-e93f1be503efd0e44e46fc1fd4c13dbee72a6561.tar.xz
linux-e93f1be503efd0e44e46fc1fd4c13dbee72a6561.zip
[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: Denis V. Lunev <den@openvz.org> Acked-by: Eric Miao <ymiao3@marvell.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/pxa3xx_nand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index c0fa9c9edf08..15f0a26730ae 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -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,