summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-10-04 13:28:00 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-04 12:09:16 -0700
commit0d31e7e4239d4765198ea6f46b98ba680038f7ad (patch)
treed9b5e587f9a5d962e1ab7791cd6122407215101c
parent4c28d069b5be71bb2136d85e7a9b9fe0d07e04a1 (diff)
fuse: handle the case of NULL dereference
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1798 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1798
-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);