mtd/drivers/mtd mtdblock.c,1.63,1.64
David Woodhouse
dwmw2 at infradead.org
Sat Oct 4 13:14:16 EDT 2003
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv23905
Modified Files:
mtdblock.c
Log Message:
Fix check for kmalloc failure
Index: mtdblock.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdblock.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- mtdblock.c 23 Jun 2003 12:00:08 -0000 1.63
+++ mtdblock.c 4 Oct 2003 17:14:14 -0000 1.64
@@ -275,7 +275,7 @@
/* OK, it's not open. Create cache info for it */
mtdblk = kmalloc(sizeof(struct mtdblk_dev), GFP_KERNEL);
- if (!mtdblks)
+ if (!mtdblk)
return -ENOMEM;
memset(mtdblk, 0, sizeof(*mtdblk));
More information about the linux-mtd-cvs
mailing list