From ac6a2bad618fbf71f5462ec25b390fbad06650e6 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Tue, 27 Feb 2007 14:27:25 -0500 Subject: [PATCH] fs/unionfs/: Check return value of d_path Signed-off-by: Josef 'Jeff' Sipek --- fs/unionfs/super.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index 38443c74524..176cfb666a0 100644 --- a/fs/unionfs/super.c +++ b/fs/unionfs/super.c @@ -311,6 +311,11 @@ static int unionfs_show_options(struct seq_file *m, struct vfsmount *mnt) path = d_path(unionfs_lower_dentry_idx(sb->s_root, bindex), unionfs_lower_mnt_idx(sb->s_root, bindex), tmp_page, PAGE_SIZE); + if (IS_ERR(path)) { + ret = PTR_ERR(path); + goto out; + } + perms = branchperms(sb, bindex); seq_printf(m, "%s=%s", path, -- 2.43.0