From 0d31e7e4239d4765198ea6f46b98ba680038f7ad Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 4 Oct 2010 13:28:00 +0000 Subject: fuse: handle the case of NULL dereference Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 1798 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1798 --- xlators/mount/fuse/src/fuse-helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index f78dc3ed9..7f708e025 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); -- cgit