commit 1fbf7ba09e618706cd2c7590948d67302dce5988
Author: Erez Zadok <[EMAIL PROTECTED]>
Date: Fri Mar 2 13:35:33 2007 -0500
fs/unionfs/: Fix a memory leak in unionfs_read_super
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
Signed-off-by: Josef 'Jeff' Sipek <[EMAIL PROTECTED]>
diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c
index ca7ee26..bd64242 100644
--- a/fs/unionfs/main.c
+++ b/fs/unionfs/main.c
@@ -584,10 +584,11 @@ static int unionfs_read_super(struct super_block *sb,
void *raw_data,
atomic_set(&UNIONFS_D(sb->s_root)->generation, 1);
/* call interpose to create the upper level inode */
- if ((err = unionfs_interpose(sb->s_root, sb, 0)))
- goto out_freedpd;
+ err = unionfs_interpose(sb->s_root, sb, 0);
unionfs_unlock_dentry(sb->s_root);
- goto out;
+ if (!err)
+ goto out;
+ /* else fall through */
out_freedpd:
if (UNIONFS_D(sb->s_root)) {
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs