Skip to content

Commit

Permalink
[MTD] [NAND] fix OOPS accessing flash operations over STM flash on PXA
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Denis V. Lunev authored and David Woodhouse committed Dec 3, 2008
1 parent d947629 commit e93f1be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/nand/pxa3xx_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e93f1be

Please sign in to comment.