GIT: unionfs2-2.6.27.y: fs/unionfs/: Check return value of d_path
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:15:53 EDT 2010
commit 67d2bd9b72589bb94694c101cd7eef6e277143e8
Author: Josef 'Jeff' Sipek <jsipek at cs.sunysb.edu>
Date: Tue Feb 27 14:27:25 2007 -0500
fs/unionfs/: Check return value of d_path
Signed-off-by: Josef 'Jeff' Sipek <jsipek at cs.sunysb.edu>
diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index 38443c7..176cfb6 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,
More information about the unionfs-cvs
mailing list