diff options
author | Varsha Rao <varao@redhat.com> | 2018-10-29 09:53:27 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-11-02 01:07:21 +0000 |
commit | 5d0c8e8ec9b68352cf53f8e430897096e2caf477 (patch) | |
tree | 8946bfe7fc4a0987d1b981a67865563b345b3cb8 /xlators | |
parent | 00a5e2a5112971e4d3dca8419f24d878b4199d37 (diff) |
posix: Fix coverity issue
This patch fixes the unchecked return value, coverity issue.
CID: 1391412
Change-Id: If85f4afdf8c6d37602c62fbf4d7c730e18be81e7
updates: bz#789278
Signed-off-by: Varsha Rao <varao@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/storage/posix/src/posix-inode-fd-ops.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xlators/storage/posix/src/posix-inode-fd-ops.c b/xlators/storage/posix/src/posix-inode-fd-ops.c index 735c5731d55..2f541ba13b3 100644 --- a/xlators/storage/posix/src/posix-inode-fd-ops.c +++ b/xlators/storage/posix/src/posix-inode-fd-ops.c @@ -4744,8 +4744,12 @@ posix_fstat(call_frame_t *frame, xlator_t *this, fd_t *fd, dict_t *xdata) if (xdata) { xattr_rsp = posix_xattr_fill(this, NULL, NULL, fd, _fd, xdata, &buf); - posix_cs_maintenance(this, fd, NULL, &_fd, &buf, NULL, xdata, - &xattr_rsp, _gf_false); + op_ret = posix_cs_maintenance(this, fd, NULL, &_fd, &buf, NULL, xdata, + &xattr_rsp, _gf_false); + if (op_ret < 0) { + gf_msg(this->name, GF_LOG_ERROR, 0, 0, + "file state check failed, fd %p", fd); + } } op_ret = 0; |