summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2015-04-02 15:07:31 +0530
committerVijay Bellur <vbellur@redhat.com>2015-04-06 10:15:01 -0700
commite5f59739b210672480115177cbd4dbd391fabb92 (patch)
tree794ba8dd9f31990a4e6c87a9cea26bde701476b3
parent331e705b6a458600c0b5cbcf2b0f7b9e1167bdc2 (diff)
glusterd: fix Null pointer dereference in bitrot disable
CID : 128806 Change-Id: Ia143a28a3dcb80d2175c908bd152c3d0b821bbb5 BUG: 789278 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/10113 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-bitrot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-bitrot.c b/xlators/mgmt/glusterd/src/glusterd-bitrot.c
index a0de7a35998..ffc43698f95 100644
--- a/xlators/mgmt/glusterd/src/glusterd-bitrot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-bitrot.c
@@ -267,6 +267,9 @@ glusterd_bitrot_disable (glusterd_volinfo_t *volinfo, char **op_errstr)
int32_t ret = -1;
xlator_t *this = NULL;
+ this = THIS;
+ GF_VALIDATE_OR_GOTO ("glusterd", this, out);
+
GF_VALIDATE_OR_GOTO (this->name, volinfo, out);
GF_VALIDATE_OR_GOTO (this->name, op_errstr, out);