diff options
author | Sunil Kumar Acharya <sheggodu@redhat.com> | 2018-08-06 20:49:12 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-08-16 06:14:12 +0000 |
commit | fc233b8f6989fba02f77e0b0a5adbce1166bd7fe (patch) | |
tree | 613e3cc74087df14eba6a81b11f4fab50820cb82 /xlators/cluster/ec/src/ec-combine.c | |
parent | 0ef74dbd70cce5462b289f6f0cfb05082db00ff5 (diff) |
cluster/ec: FORWARD_NULL coverity fix
Fixing FORWARD_NULL coverify errors with EC.
CID: 1394650
BUG: 789278
Change-Id: I52c99dac3483ca31a86cd7e3a959d4010b195f32
updates: bz#789278
Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-combine.c')
-rw-r--r-- | xlators/cluster/ec/src/ec-combine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-combine.c b/xlators/cluster/ec/src/ec-combine.c index 2233caffdba..e4c660d9972 100644 --- a/xlators/cluster/ec/src/ec-combine.c +++ b/xlators/cluster/ec/src/ec-combine.c @@ -590,7 +590,7 @@ int32_t ec_dict_data_iatt(ec_cbk_data_t *cbk, int32_t which, char *key) } } - if (stbuf->ia_type == IA_IFREG) { + if ((stbuf != NULL) && (stbuf->ia_type == IA_IFREG)) { ec_iatt_rebuild(ec, stbuf, 1, cbk->count); /* TODO: not sure if an iatt could come in xdata from a fop that takes * no locks. */ |