Skip to content

Commit

Permalink
TL/MLX5: fix socket closing
Browse files Browse the repository at this point in the history
  • Loading branch information
samnordmann committed Aug 17, 2023
1 parent 2ff3c45 commit 855f390
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/tl/mlx5/tl_mlx5_pd.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ static ucc_status_t client_recv_data(int *shared_cmd_fd,
goto out;
}

return status;

out:
if (close(sock) == -1) {
tl_debug(lib, "Failed to close client socket errno %d", errno);
Expand Down Expand Up @@ -204,6 +206,8 @@ static ucc_status_t server_send_data(int command_fd, uint32_t pd_handle,
status = UCC_ERR_NO_MESSAGE;
}

return status;

listen_fail:
if (close(sock) == -1) {
tl_debug(lib, "failed to close server socket errno %d", errno);
Expand Down

0 comments on commit 855f390

Please sign in to comment.