Messages in this thread Patch in this message | | | From | "Josef 'Jeff' Sipek" <> | Subject | [PATCH 08/13] fs/unionfs/: Check return value of d_path | Date | Sun, 4 Mar 2007 20:54:58 -0500 |
| |
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu> --- fs/unionfs/super.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
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, -- 1.5.0.2.260.g2eb065 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |