[MTD] [NAND] fix OOPS accessing flash operations over STM flash on PXA
authorDenis V. Lunev <den@parallels.com>
Wed, 3 Dec 2008 10:47:20 +0000 (10:47 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 3 Dec 2008 10:47:20 +0000 (10:47 +0000)
commite93f1be503efd0e44e46fc1fd4c13dbee72a6561
treeb428e3750c8ed3f7131d41905215b75443952303
parentd94762989103b5e29938d8a7b0112e72c4633265
[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>
drivers/mtd/nand/pxa3xx_nand.c