commit 1b0c1c231d190c6f338be03ec3a1760c835d7ab4
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Thu Sep 18 23:00:23 2008 -0400

    Unionfs: initialize lower mnt in lookup after vfs_path_lookup
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index c713c76..f3f5628 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -395,7 +395,9 @@ struct dentry *unionfs_lookup_full(struct dentry *dentry,
                        goto out_free;
                }
                unionfs_set_lower_dentry_idx(dentry, bindex, lower_dentry);
-               BUG_ON(!lower_mnt);
+               if (!lower_mnt)
+                       lower_mnt = unionfs_mntget(dentry->d_sb->s_root,
+                                                  bindex);
                unionfs_set_lower_mnt_idx(dentry, bindex, lower_mnt);
 
                /* adjust dbstart/end */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to