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>
This commit is contained in:
Poornima 2014-02-04 22:52:14 +00:00 committed by Vijay Bellur
parent 9854ceaf9a
commit da7972c10c

View File

@ -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);
{