mtd/drivers/mtd/nand s3c2410.c,1.13,1.14
bjd at infradead.org
bjd at infradead.org
Wed Jul 6 16:05:10 EDT 2005
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv2579/drivers/mtd/nand
Modified Files:
s3c2410.c
Log Message:
Fix OOPs if there was no platform set information passed
Index: s3c2410.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/s3c2410.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- s3c2410.c 20 Jun 2005 11:48:21 -0000 1.13
+++ s3c2410.c 6 Jul 2005 20:05:06 -0000 1.14
@@ -16,6 +16,7 @@
* 02-May-2005 BJD Fixed s3c2440 support
* 02-May-2005 BJD Reduced hwcontrol decode
* 20-Jun-2005 BJD Updated s3c2440 support, fixed timing bug
+ * 08-Jul-2005 BJD Fix OOPS when no platform data supplied
*
* $Id$
*
@@ -232,7 +233,7 @@
if (chip == -1) {
cur |= bit;
} else {
- if (chip > nmtd->set->nr_chips) {
+ if (nmtd->set != NULL && chip > nmtd->set->nr_chips) {
printk(KERN_ERR PFX "chip %d out of range\n", chip);
return;
}
More information about the linux-mtd-cvs
mailing list