summaryrefslogtreecommitdiffstats
path: root/xlators/features/quiesce
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2018-11-08 14:14:04 +0530
committerAmar Tumballi <amarts@redhat.com>2018-11-12 03:39:01 +0000
commit96ae7dd2262a3ac72aea14c69f7404a8f8435a5c (patch)
tree148729f03be5183d0639181f234d0d77c094a22f /xlators/features/quiesce
parentf68f9106087a3dc4e6da88a09285ac723096d7e9 (diff)
quiesce : fix coverity issue
This patch fixes 1388996 : Dereference null return value updates: bz#789278 Change-Id: I9351ae43736efd2f9abe4e1888dba89b6b3e1fe3 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'xlators/features/quiesce')
-rw-r--r--xlators/features/quiesce/src/quiesce.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/features/quiesce/src/quiesce.c b/xlators/features/quiesce/src/quiesce.c
index b7c2c549a91..41912b7e882 100644
--- a/xlators/features/quiesce/src/quiesce.c
+++ b/xlators/features/quiesce/src/quiesce.c
@@ -186,6 +186,11 @@ __gf_quiesce_perform_failover(xlator_t *this)
}
frame = create_frame(this, this->ctx->pool);
+ if (!frame) {
+ gf_msg_debug(this->name, 0, "failed to create the frame");
+ ret = -1;
+ goto out;
+ }
dict = dict_new();