From 27050952a1c25f369de440aaed376e57d1ca31fd Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Fri, 19 Sep 2008 16:06:50 -0400 Subject: [PATCH] Unionfs: initialize lower mnt in lookup after vfs_path_lookup Signed-off-by: Erez Zadok --- fs/unionfs/lookup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c index fd894bff0da..6cc56adda7f 100644 --- a/fs/unionfs/lookup.c +++ b/fs/unionfs/lookup.c @@ -323,7 +323,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 */ -- 2.43.0