Skip to contentSkip to conversation

mtd: OOPS accessing flash operations over STM flash on PXA

PATCH RESEND New Denis V. Lunev 1 participant 1 message Dec 1, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 mtd: OOPS accessing flash operations over STM flash on PXA

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.

---
 drivers/mtd/nand/pxa3xx_nand.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mtd/nand/pxa3xx_nand.c +1 -0
index c0fa9c9..15f0a26 100644
@@ -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,
Signature · 1 line
1.5.6.4