X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=yaffs_fs.c;h=8f4fd329e9415ac4c5127eb242b8ef58b28e64c0;hb=781662fbb93ffe509823a17779d9fbd41d343f18;hp=fd5e23f26b557596959313889a3142a263e0b0f6;hpb=751cba724040d777d1768dd5d4997039962d2608;p=yaffs2.git diff --git a/yaffs_fs.c b/yaffs_fs.c index fd5e23f..8f4fd32 100644 --- a/yaffs_fs.c +++ b/yaffs_fs.c @@ -31,7 +31,7 @@ */ const char *yaffs_fs_c_version = - "$Id: yaffs_fs.c,v 1.43 2006-03-08 07:59:20 charles Exp $"; + "$Id: yaffs_fs.c,v 1.45 2006-04-25 00:41:43 wookey Exp $"; extern const char *yaffs_guts_c_version; #include @@ -1289,6 +1289,11 @@ static void yaffs_put_super(struct super_block *sb) /* we assume this is protected by lock_kernel() in mount/umount */ list_del(&dev->devList); + + if(dev->spareBuffer){ + YFREE(dev->spareBuffer); + dev->spareBuffer = NULL; + } kfree(dev); } @@ -1408,7 +1413,7 @@ static struct super_block *yaffs_internal_read_super(int yaffsVersion, if (mtd->oobblock < YAFFS_MIN_YAFFS2_CHUNK_SIZE || mtd->oobsize < YAFFS_MIN_YAFFS2_SPARE_SIZE) { T(YAFFS_TRACE_ALWAYS, - ("yaffs: MTD device does not support have the " + ("yaffs: MTD device does not have the " "right page sizes\n")); return NULL; } @@ -1903,5 +1908,5 @@ module_init(init_yaffs_fs) module_exit(exit_yaffs_fs) MODULE_DESCRIPTION("YAFFS2 - a NAND specific flash file system"); -MODULE_AUTHOR("Charles Manning, Aleph One Ltd., 2002,2003,2004"); +MODULE_AUTHOR("Charles Manning, Aleph One Ltd., 2002-2006"); MODULE_LICENSE("GPL");