summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src/fuse-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mount/fuse/src/fuse-helpers.c')
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c
index d30f2e8a282..3bfdbcaf17c 100644
--- a/xlators/mount/fuse/src/fuse-helpers.c
+++ b/xlators/mount/fuse/src/fuse-helpers.c
@@ -390,7 +390,7 @@ fuse_loc_fill (loc_t *loc, fuse_state_t *state, ino_t ino,
}
inode = loc->inode;
- if (!inode) {
+ if (!inode && parent) {
inode = inode_grep (parent->table, parent, name);
loc->inode = inode;
}