From 5d0c8e8ec9b68352cf53f8e430897096e2caf477 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Mon, 29 Oct 2018 09:53:27 +0530 Subject: 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 --- xlators/storage/posix/src/posix-inode-fd-ops.c | 8 ++++++-- 1 file 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; -- cgit