mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.129,1.130
gleixner at infradead.org
gleixner at infradead.org
Mon Aug 11 08:41:09 EDT 2003
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv27013
Modified Files:
cfi_cmdset_0001.c
Log Message:
initialize cfi->cmdset_priv before calling fixup, else oops in fixupp_intelstrata
Index: cfi_cmdset_0001.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0001.c,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -r1.129 -r1.130
--- cfi_cmdset_0001.c 11 Aug 2003 10:37:04 -0000 1.129
+++ cfi_cmdset_0001.c 11 Aug 2003 12:41:05 -0000 1.130
@@ -199,6 +199,9 @@
extp->BlkStatusRegMask = le16_to_cpu(extp->BlkStatusRegMask);
extp->ProtRegAddr = le16_to_cpu(extp->ProtRegAddr);
+ /* Install our own private info structure */
+ cfi->cmdset_priv = extp;
+
cfi_fixup(map, fixup_table);
#ifdef DEBUG_CFI_FEATURES
@@ -209,8 +212,6 @@
if(extp->SuspendCmdSupport & 1) {
printk(KERN_NOTICE "cfi_cmdset_0001: Erase suspend on write enabled\n");
}
- /* Install our own private info structure */
- cfi->cmdset_priv = extp;
}
for (i=0; i< cfi->numchips; i++) {
More information about the linux-mtd-cvs
mailing list