summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mount/fuse')
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c
index f78dc3ed9b1..7f708e0256e 100644
--- a/xlators/mount/fuse/src/fuse-helpers.c
+++ b/xlators/mount/fuse/src/fuse-helpers.c
@@ -172,7 +172,8 @@ fuse_ino_to_inode (uint64_t ino, xlator_t *fuse)
if (ino == 1) {
active_subvol = fuse_active_subvol (fuse);
- inode = active_subvol->itable->root;
+ if (active_subvol)
+ inode = active_subvol->itable->root;
} else {
inode = (inode_t *) (unsigned long) ino;
inode_ref (inode);