summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-snapshot.c
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2017-11-07 17:35:32 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-11-08 12:45:41 +0000
commit551be95ef75182e3dc5ccd3f5ef4e1601ecca605 (patch)
tree7f4959df7c14ef73a08490e46ceebca3f95d5d81 /xlators/mgmt/glusterd/src/glusterd-snapshot.c
parent684d62276af37c260671024ce17cb281f493b289 (diff)
snapshot : fix coverity issue in glusterd-snapshot.c
This patch fixes coverity issue 87 from [1]. [1] https://download.gluster.org/pub/gluster/glusterfs/static-analysis/master/glusterfs-coverity/2017-10-30-9aa574a5/html/ Change-Id: I5c9c67b4dd43ebf1a5a83532cbd06178000da145 BUG: 789278 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-snapshot.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
index f161a6f18b6..e41f0cd7b75 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
@@ -6583,7 +6583,9 @@ glusterd_schedule_brick_snapshot (dict_t *dict, dict_t *rsp_dict,
GF_ASSERT(dict);
GF_ASSERT(snap);
- synctask_barrier_init ((&args));
+ ret = synctask_barrier_init ((&args));
+ if (ret)
+ goto out;
cds_list_for_each_entry (snap_vol, &snap->volumes, vol_list) {
volcount++;
brickcount = 0;