mtd/drivers/mtd cmdline.c,1.3,1.4
jamey at infradead.org
jamey at infradead.org
Thu Sep 12 21:18:41 EDT 2002
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv18128
Modified Files:
cmdline.c
Log Message:
do not try to parse cmdline if parts= was not passed on kernel cmdline
Index: cmdline.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/cmdline.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- cmdline.c 20 Jun 2002 18:07:49 -0000 1.3
+++ cmdline.c 13 Sep 2002 01:18:38 -0000 1.4
@@ -286,6 +286,9 @@
int i;
struct cmdline_mtd_partition *part;
+ if (!cmdline)
+ return -EINVAL;
+
/* parse command line */
if (!cmdline_parsed)
mtdpart_setup_real(cmdline);
More information about the linux-mtd-cvs
mailing list