Unionfs: drop branchcount on error
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 19 Sep 2008 23:26:55 +0000 (19:26 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 19 Sep 2008 23:26:55 +0000 (19:26 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/commonfops.c

index c2372c559eef8141d5252bd4b7efe500577c8f80..ed5f61bab866c5fc631e837ded9e862f243f2da7 100644 (file)
@@ -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