From f6983f825f10f1795118ca140fd32e9c280bb5a4 Mon Sep 17 00:00:00 2001 From: Sunil Kumar Acharya Date: Tue, 31 Oct 2017 15:36:02 +0530 Subject: 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 --- xlators/cluster/stripe/src/stripe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators') 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; } -- cgit