summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src/fuse-bridge.c
diff options
context:
space:
mode:
authorNandaja Varma <nandaja.varma@gmail.com>2015-02-11 11:29:20 +0530
committerVijay Bellur <vbellur@redhat.com>2015-03-31 01:18:00 -0700
commit2acb5325828a68b06b39ab44e6736c6ad4ca3a06 (patch)
tree25ee2171d32eae3628499f28948e0bea122de416 /xlators/mount/fuse/src/fuse-bridge.c
parentd7374684f648c1e45d695454f95a65acfe6d04e8 (diff)
fuse: Fixing the coverity issues
Coverity CID: 1124806 1124692 Change-Id: I6dcf245ded9796fb42516eca63211d855262c26f BUG: 789278 Signed-off-by: Nandaja Varma <nandaja.varma@gmail.com> Reviewed-on: http://review.gluster.org/9629 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mount/fuse/src/fuse-bridge.c')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 9ce1fdee13d..ec5c6f60fad 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -4095,6 +4095,11 @@ fuse_first_lookup (xlator_t *this)
dict = dict_new ();
frame = create_frame (this, this->ctx->pool);
+ if (!frame) {
+ gf_log ("fuse", GF_LOG_ERROR, "failed to create frame");
+ return -1;
+ }
+
frame->root->type = GF_OP_TYPE_FOP;
xl = priv->active_subvol;