diff options
author | Poornima <pgurusid@redhat.com> | 2014-02-04 22:52:14 +0000 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-02-17 20:50:56 -0800 |
commit | da7972c10cd0495621ea95c186db86cfa8d997b6 (patch) | |
tree | 841af17eea65b6063674c56c44a16e41c150ba11 | |
parent | 9854ceaf9a91f2b40324e71dc0210628511fc878 (diff) |
mount/fuse: Fix the NULL dereference errors reported by coverity.
Change-Id: I9df57e11b115d7323931735c86b586c0b65fa414
BUG: 789278
Signed-off-by: Poornima <pgurusid@redhat.com>
Reviewed-on: http://review.gluster.org/6990
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
-rw-r--r-- | xlators/mount/fuse/src/fuse-resolve.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-resolve.c b/xlators/mount/fuse/src/fuse-resolve.c index 8565ce0e478..17d76d46bb1 100644 --- a/xlators/mount/fuse/src/fuse-resolve.c +++ b/xlators/mount/fuse/src/fuse-resolve.c @@ -381,6 +381,8 @@ fuse_migrate_fd_task (void *data) basefd = state->fd; basefd_ctx = fuse_fd_ctx_get (state->this, basefd); + if (!basefd_ctx) + goto out; LOCK (&basefd->lock); { |