From 281361cd5f067e53be7113a5fa3f58497eb7389d Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Wed, 10 Sep 2008 23:41:18 -0400 Subject: [PATCH] Unionfs: drop branchcount on error Signed-off-by: Erez Zadok --- fs/unionfs/commonfops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 58619709bc6e..51f10a23d28f 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 { -- 2.43.0