summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSunil Kumar Acharya <sheggodu@redhat.com>2017-10-31 15:36:02 +0530
committerJeff Darcy <jeff@pl.atyp.us>2017-11-01 13:29:05 +0000
commitf6983f825f10f1795118ca140fd32e9c280bb5a4 (patch)
treecd8e599a74b35b11dc5b4f4e124ba054b2436b62 /xlators
parentafa8df9ee249fac2a20f3d367dcadcee1451184e (diff)
cluster/ec: FORWARD_NULL coverity fix
Problem: frame could be NULL. Solution: Added check to verify frame. BUG: 789278 Change-Id: I55a64c936ae71ec8587a3f9dfa0fdee5d0ea5213 Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/stripe/src/stripe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/cluster/stripe/src/stripe.c b/xlators/cluster/stripe/src/stripe.c
index 67006ab06b6..4a83707b4c4 100644
--- a/xlators/cluster/stripe/src/stripe.c
+++ b/xlators/cluster/stripe/src/stripe.c
@@ -4004,7 +4004,9 @@ stripe_discard_cbk(call_frame_t *frame, void *cookie, xlator_t *this,
&mlocal->post_buf, NULL);
}
out:
- STRIPE_STACK_DESTROY(frame);
+ if (frame)
+ STRIPE_STACK_DESTROY(frame);
+
return 0;
}