|
|
21ab4e |
From c49a94135ca4fc24c8fbe3e3354b9f54f834512b Mon Sep 17 00:00:00 2001
|
|
|
21ab4e |
From: Atin Mukherjee <amukherj@redhat.com>
|
|
|
21ab4e |
Date: Tue, 6 Jun 2017 17:45:51 +0530
|
|
|
21ab4e |
Subject: [PATCH 490/509] glusterd: fix glusterd crash from
|
|
|
21ab4e |
glusterd_op_ac_rcvd_brick_op_acc
|
|
|
21ab4e |
|
|
|
21ab4e |
In out label, before checking ev_ctx->rsp_dict we should first check if
|
|
|
21ab4e |
ev_ctx is not NULL
|
|
|
21ab4e |
|
|
|
21ab4e |
>Reviewed-on: https://review.gluster.org/17478
|
|
|
21ab4e |
>Smoke: Gluster Build System <jenkins@build.gluster.org>
|
|
|
21ab4e |
>NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
|
|
|
21ab4e |
>CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
|
|
|
21ab4e |
>Reviewed-by: Gaurav Yadav <gyadav@redhat.com>
|
|
|
21ab4e |
>Reviewed-by: Samikshan Bairagya <samikshan@gmail.com>
|
|
|
21ab4e |
|
|
|
21ab4e |
Change-Id: I28f4f1ee9070617a0e6a23a43af8c5756f96a47e
|
|
|
21ab4e |
BUG: 1452205
|
|
|
21ab4e |
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
21ab4e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/108396
|
|
|
21ab4e |
Reviewed-by: Samikshan Bairagya <sbairagy@redhat.com>
|
|
|
21ab4e |
---
|
|
|
21ab4e |
xlators/mgmt/glusterd/src/glusterd-op-sm.c | 2 +-
|
|
|
21ab4e |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
21ab4e |
|
|
|
21ab4e |
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
21ab4e |
index 5fbf15f..08c39ec 100644
|
|
|
21ab4e |
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
21ab4e |
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
|
|
|
21ab4e |
@@ -7565,7 +7565,7 @@ glusterd_op_ac_rcvd_brick_op_acc (glusterd_op_sm_event_t *event, void *ctx)
|
|
|
21ab4e |
ev_ctx->commit_ctx);
|
|
|
21ab4e |
|
|
|
21ab4e |
out:
|
|
|
21ab4e |
- if (ev_ctx->rsp_dict)
|
|
|
21ab4e |
+ if (ev_ctx && ev_ctx->rsp_dict)
|
|
|
21ab4e |
dict_unref (ev_ctx->rsp_dict);
|
|
|
21ab4e |
GF_FREE (ev_ctx);
|
|
|
21ab4e |
gf_msg_debug (this->name, 0, "Returning %d", ret);
|
|
|
21ab4e |
--
|
|
|
21ab4e |
1.8.3.1
|
|
|
21ab4e |
|