diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2019-09-07 20:18:01 +0530 |
---|---|---|
committer | Pranith Kumar K <pkarampu@redhat.com> | 2019-09-07 20:20:09 +0530 |
commit | 6bf09ecbe8203d0f8c020e6b0b55202e91e216c9 (patch) | |
tree | b14fe21d97272428cc43579000d6f5c651302edd /xlators/cluster/ec/src/ec-galois.h | |
parent | 7b3971ad0152eb1bb89a982333970118a6bd4922 (diff) |
cluster/ec: Fix coverity issues
Fixed the following coverity issue in both flush/fsync
>>> CID 1404964: Null pointer dereferences (REVERSE_INULL)
>>> Null-checking "fd" suggests that it may be null, but it has already
been dereferenced on all paths leading to the check.
>>> if (fd != NULL) {
>>> fop->fd = fd_ref(fd);
>>> if (fop->fd == NULL) {
>>> gf_msg(this->name, GF_LOG_ERROR, 0,
>>> "Failed to reference a "
>>> "file descriptor.");
fixes bz#1748836
Change-Id: I19c05d585e23f8fbfbc195d1f3775ec528eed671
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-galois.h')
0 files changed, 0 insertions, 0 deletions