Messages in this thread Patch in this message | | | From | "Josef 'Jeff' Sipek" <> | Subject | [PATCH 02/13] fs/unionfs/: Fix a memory leak in unionfs_read_super | Date | Sun, 4 Mar 2007 20:54:52 -0500 |
| |
From: Erez Zadok <ezk@cs.sunysb.edu>
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu> --- fs/unionfs/main.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
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)) { -- 1.5.0.2.260.g2eb065 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |