From patchwork Mon Nov 17 09:22:15 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: mtd: OOPS accessing flash operations over STM flash on PXA Date: Sun, 16 Nov 2008 23:22:15 -0000 From: Denis V. Lunev X-Patchwork-Id: 9124 Message-Id: <1226913735-9469-1-git-send-email-den@openvz.org> To: dwmw2@infradead.org Cc: "Denis V. Lunev" , ymiao3@marvell.com, linux-mtd@lists.infradead.org STM 2Gb flash is a large-page NAND flash. Set operations accordingly. This field is dereferrenced without a check in several places resulting in OOPS (seen in reality). Signed-off-by: Denis V. Lunev --- drivers/mtd/nand/pxa3xx_nand.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index c0fa9c9..15f0a26 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,