mtd/drivers/mtd mtdconcat.c,1.2,1.3
David Woodhouse
dwmw2 at infradead.org
Tue May 21 17:04:28 EDT 2002
- Previous message: mtd/fs/jffs2 LICENCE,NONE,1.1 background.c,1.27,1.28 build.c,1.34,1.35 compr.c,1.23,1.24 compr_rtime.c,1.8,1.9 compr_rubin.c,1.16,1.17 compr_zlib.c,1.17,1.18 dir.c,1.68,1.69 erase.c,1.35,1.36 file.c,1.71,1.72 fs.c,1.10,1.11 gc.c,1.73,1.74 ioctl.c,1.5,1.6 malloc.c,1.21,1.22 nodelist.c,1.43,1.44 nodelist.h,1.71,1.72 nodemgmt.c,1.68,1.69 os-linux.h,1.18,1.19 pushpull.h,1.7,1.8 read.c,1.22,1.23 readinode.c,1.72,1.73 scan.c,1.75,1.76 super-v24.c,1.62,1.63 super.c,1.67,1.68 symlink.c,1.9,1.10 wbuf.c,1.11,1.12 write.c,1.54,1.55 writev.c,1.1,1.2
- Next message: mtd/fs/jffs2 nodelist.h,1.72,1.73
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv16851
Modified Files:
mtdconcat.c
Log Message:
Don't call erase callback if it fails.
Index: mtdconcat.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdconcat.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mtdconcat.c 22 Mar 2002 08:45:22 -0000 1.2
+++ mtdconcat.c 21 May 2002 21:04:25 -0000 1.3
@@ -303,11 +303,14 @@
*/
erase->addr = 0;
}
+ kfree(erase);
+ if (err)
+ return err;
+
instr->state = MTD_ERASE_DONE;
if (instr->callback)
instr->callback(instr);
- kfree(erase);
- return err;
+ return 0;
}
static int concat_lock (struct mtd_info *mtd, loff_t ofs, size_t len)
- Previous message: mtd/fs/jffs2 LICENCE,NONE,1.1 background.c,1.27,1.28 build.c,1.34,1.35 compr.c,1.23,1.24 compr_rtime.c,1.8,1.9 compr_rubin.c,1.16,1.17 compr_zlib.c,1.17,1.18 dir.c,1.68,1.69 erase.c,1.35,1.36 file.c,1.71,1.72 fs.c,1.10,1.11 gc.c,1.73,1.74 ioctl.c,1.5,1.6 malloc.c,1.21,1.22 nodelist.c,1.43,1.44 nodelist.h,1.71,1.72 nodemgmt.c,1.68,1.69 os-linux.h,1.18,1.19 pushpull.h,1.7,1.8 read.c,1.22,1.23 readinode.c,1.72,1.73 scan.c,1.75,1.76 super-v24.c,1.62,1.63 super.c,1.67,1.68 symlink.c,1.9,1.10 wbuf.c,1.11,1.12 write.c,1.54,1.55 writev.c,1.1,1.2
- Next message: mtd/fs/jffs2 nodelist.h,1.72,1.73
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list