From 12f92be0c29c6f6a8fb3c79f49fbe4bdea7d9ab7 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 18 Sep 2008 22:22:26 -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 0ae7f3af27b..d75e7132c8b 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 */ -- 2.43.0