summaryrefslogtreecommitdiffstats
path: root/geo-replication
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2017-02-23 21:26:33 +0100
committerPranith Kumar Karampuri <pkarampu@redhat.com>2017-04-06 23:48:06 -0400
commitc932c0df4b70abaa85354e56efe6f1ce88ce4a38 (patch)
tree533fc4bb21f954a43aa4257ae985d6a877159a2e /geo-replication
parent0f71338e1d7c0b70f4fe3b19c68612fe730d9de2 (diff)
shared: simplify and fix crash when we run out of memory
Since mem_get0 can return NULL, local->op_ret is gonna crash. Found by coverity. And since we only have ENOMEM as potential error, we can also simplify the code by avoiding using 'local' for that. Change-Id: I778747b57f520b1a52347c0fc9f27efd7a7c5ca0 BUG: 789278 Signed-off-by: Michael Scherer <misc@redhat.com> Reviewed-on: https://review.gluster.org/16739 Smoke: Gluster Build System <jenkins@build.gluster.org> Tested-by: Michael Scherer <misc@fedoraproject.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Vijay Bellur <vbellur@redhat.com> Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'geo-replication')
0 files changed, 0 insertions, 0 deletions