Skip to content

Commit

Permalink
io_uring: fix coverity issues (gluster#3535)
Browse files Browse the repository at this point in the history
This patch fixes the following coverity issues:

- CID 1488896
- CID 1488897
- CID 1488898

Change-Id: If3f783b8df5f05a22360477b9aa4a45208ee96c4
Updates: gluster#1000
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
  • Loading branch information
xhernandez authored May 19, 2022
1 parent 8a6b277 commit e1fe88d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libglusterfs/src/glusterfs/gf-io-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@
* makes it very hard or impossible to return to a stable state. */
#define gf_succeed(_name, _func, _res) \
do { \
if (caa_unlikely((_res) < 0)) { \
gf_check(_name, GF_LOG_CRITICAL, _func, _res); \
int32_t __gf_succeed = (_res); \
if (caa_unlikely((__gf_succeed) < 0)) { \
gf_check(_name, GF_LOG_CRITICAL, _func, __gf_succeed); \
GF_ABORT(); \
} \
} while (0)
Expand Down

0 comments on commit e1fe88d

Please sign in to comment.