mtd/drivers/mtd ftl.c,1.51,1.52
David Woodhouse
dwmw2 at infradead.org
Mon Aug 11 05:00:48 EDT 2003
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv14712
Modified Files:
ftl.c
Log Message:
Remove bogus check in NumEraseUnits
Index: ftl.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/ftl.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- ftl.c 23 Jun 2003 12:00:08 -0000 1.51
+++ ftl.c 11 Aug 2003 09:00:44 -0000 1.52
@@ -188,7 +188,7 @@
printk(KERN_NOTICE "ftl_cs: FTL header not found.\n");
return -ENOENT;
}
- if ((le16_to_cpu(header.NumEraseUnits) > 65536) || header.BlockSize != 9 ||
+ if (header.BlockSize != 9 ||
(header.EraseUnitSize < 10) || (header.EraseUnitSize > 31) ||
(header.NumTransferUnits >= le16_to_cpu(header.NumEraseUnits))) {
printk(KERN_NOTICE "ftl_cs: FTL header corrupt!\n");
More information about the linux-mtd-cvs
mailing list