From: Erez Zadok <[EMAIL PROTECTED]>

Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
Signed-off-by: Josef 'Jeff' Sipek <[EMAIL PROTECTED]>
---
 fs/unionfs/commonfops.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c
index 612207a..1050c49 100644
--- a/fs/unionfs/commonfops.c
+++ b/fs/unionfs/commonfops.c
@@ -593,8 +593,7 @@ int unionfs_file_release(struct inode *inode, struct file 
*file)
        struct unionfs_inode_info *inodeinfo;
        struct super_block *sb = inode->i_sb;
        int bindex, bstart, bend;
-       int fgen;
-       int err;
+       int fgen, err = 0;
 
        unionfs_read_lock(sb);
        /*
@@ -618,7 +617,7 @@ int unionfs_file_release(struct inode *inode, struct file 
*file)
 
                if (lower_file) {
                        fput(lower_file);
-                       branchput(inode->i_sb, bindex);
+                       branchput(sb, bindex);
                }
        }
        kfree(fileinfo->lower_files);
@@ -640,6 +639,7 @@ int unionfs_file_release(struct inode *inode, struct file 
*file)
                fileinfo->rdstate = NULL;
        }
        kfree(fileinfo);
+
 out:
        unionfs_read_unlock(sb);
        return err;
-- 
1.5.2.2.238.g7cbf2f2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to