From d57a39ff1b154058779acef2ba25c0112ed9bc7b Mon Sep 17 00:00:00 2001 From: Shumpei Shiina Date: Mon, 21 Nov 2022 16:23:32 +0900 Subject: [PATCH] Correctly return error codes in get_dynamic_win_info() Signed-off-by: Shumpei Shiina --- ompi/mca/osc/ucx/osc_ucx_comm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ompi/mca/osc/ucx/osc_ucx_comm.c b/ompi/mca/osc/ucx/osc_ucx_comm.c index 134b6d885c5..c827766a7a3 100644 --- a/ompi/mca/osc/ucx/osc_ucx_comm.c +++ b/ompi/mca/osc/ucx/osc_ucx_comm.c @@ -358,7 +358,9 @@ static inline int get_dynamic_win_info(uint64_t remote_addr, free(temp_buf); /* unlock the dynamic lock */ - return ompi_osc_ucx_dynamic_unlock(module, target); + ompi_osc_ucx_dynamic_unlock(module, target); + + return ret; } static inline