From: Erez Zadok Date: Fri, 19 Sep 2008 02:22:26 +0000 (-0400) Subject: Unionfs: drop branchcount on error X-Git-Tag: unionfs-2.5~15 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=c3315d53faaec78569f4d1ada2051345952ec26d;p=unionfs-2.6.25.y.git Unionfs: drop branchcount on error Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 58619709bc6..51f10a23d28 100644 --- a/fs/unionfs/commonfops.c +++ b/fs/unionfs/commonfops.c @@ -181,6 +181,7 @@ static int open_all_files(struct file *file) unionfs_lower_mnt_idx(dentry, bindex), file->f_flags); if (IS_ERR(lower_file)) { + branchput(sb, bindex); err = PTR_ERR(lower_file); goto out; } else {