Skip to content

Commit

Permalink
prov/sockets: Fixed coverity issue for unchecked return value.
Browse files Browse the repository at this point in the history
Added a error logging print in sock_av_report_success to report failures
if the sock_eq_report_event fails.

Signed-off-by: Nikhil Nanal <nikhil.nanal@intel.com>
  • Loading branch information
nikhilnanal authored and j-xiong committed Nov 22, 2024
1 parent b987c16 commit 8cf1e53
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions prov/sockets/src/sock_av.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ static inline void sock_av_report_success(struct sock_av *av, void *context,
eq_entry.fid = &av->av_fid.fid;
eq_entry.context = context;
eq_entry.data = num_done;
sock_eq_report_event(av->eq, FI_AV_COMPLETE,
&eq_entry, sizeof(eq_entry), flags);
if (sock_eq_report_event(av->eq, FI_AV_COMPLETE,
&eq_entry, sizeof(eq_entry), flags))
SOCK_LOG_ERROR("Error in writing to EQ\n");


}

static void sock_av_report_error(struct sock_av *av, fi_addr_t *fi_addr,
Expand Down

0 comments on commit 8cf1e53

Please sign in to comment.