projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
751cba7
)
Fix unmount spare buffer leak
author
charles
<charles>
Tue, 21 Mar 2006 20:31:08 +0000
(20:31 +0000)
committer
charles
<charles>
Tue, 21 Mar 2006 20:31:08 +0000
(20:31 +0000)
yaffs_fs.c
patch
|
blob
|
history
diff --git
a/yaffs_fs.c
b/yaffs_fs.c
index fd5e23f26b557596959313889a3142a263e0b0f6..7c2a205c57f52d8836b61ddc0b7a77354fe3e543 100644
(file)
--- a/
yaffs_fs.c
+++ b/
yaffs_fs.c
@@
-31,7
+31,7
@@
*/
const char *yaffs_fs_c_version =
*/
const char *yaffs_fs_c_version =
- "$Id: yaffs_fs.c,v 1.4
3 2006-03-08 07:59:20
charles Exp $";
+ "$Id: yaffs_fs.c,v 1.4
4 2006-03-21 20:31:08
charles Exp $";
extern const char *yaffs_guts_c_version;
#include <linux/config.h>
extern const char *yaffs_guts_c_version;
#include <linux/config.h>
@@
-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);
/* 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);
}
kfree(dev);
}