diff options
author | Sunil Kumar Acharya <sheggodu@redhat.com> | 2017-10-31 12:46:53 +0530 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-11-08 02:15:55 +0000 |
commit | a98173f51b8e90c3a0c85293375db124e853d39a (patch) | |
tree | eb93d4c0906f463089c2c991b7350563973ce11e /xlators/cluster/ec | |
parent | b236fa1adbee104ec91b892d9a8d9ce29d5a546d (diff) |
cluster/ec: REVERSE_INULL coverity fix
Problem: fop could be NULL.
Solution: Check has been added to verify fop.
BUG: 789278
Change-Id: I7e8d2c1bdd8960c609aa485f180688a95606ebf7
Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
Diffstat (limited to 'xlators/cluster/ec')
-rw-r--r-- | xlators/cluster/ec/src/ec-heal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/cluster/ec/src/ec-heal.c b/xlators/cluster/ec/src/ec-heal.c index e4fbbc15a46..89019357e3c 100644 --- a/xlators/cluster/ec/src/ec-heal.c +++ b/xlators/cluster/ec/src/ec-heal.c @@ -2579,8 +2579,7 @@ ec_heal_fail (ec_t *ec, ec_fop_data_t *fop) fop->cbks.heal (fop->req_frame, NULL, ec->xl, -1, fop->error, 0, 0, 0, NULL); } - if (fop) - ec_fop_data_release (fop); + ec_fop_data_release (fop); } void |