projects
/
unionfs-3.2.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b257e3
)
fs/unionfs/: Check return value of d_path
author
Josef 'Jeff' Sipek
<jsipek@cs.sunysb.edu>
Tue, 27 Feb 2007 19:27:25 +0000
(14:27 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Tue, 11 Nov 2014 02:29:44 +0000
(21:29 -0500)
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
fs/unionfs/super.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/super.c
b/fs/unionfs/super.c
index 38443c745241e8aebf63432bcaf4e1e70f771014..176cfb666a081a7c8cc7754e7ed557d44228abbb 100644
(file)
--- 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,