ibacm: Incorrect return value check in path resolution
PATCH 1/1 ibacm: Incorrect return value check in path resolution
From: Kaike Wan <[email protected]>
The returned variable "addr" should be checked instead of the variable "ep" in the function acm_svr_resolve_path() when query parameters are given in a path record (eg, slid/dlid, sgid/dgid, etc).
Signed-off-by Kaike Wan <[email protected]>
--- src/acm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
src/acm.c +1 -1
@@ -946,7 +946,7 @@ acm_svr_resolve_path(struct acmc_client *client, struct acm_msg *msg) msg->resolve_data[0].info.addr, sizeof *path);acm_log (2 ,"path %s\n" , log_data); addr =acm_get_ep_address (&msg->resolve_data[0 ]); -if (!ep) { +if (!addr) {acm_log (0 ,"notice - unknown local end point address\n" );return acmc_resolve_response (client->index, msg,ACM_STATUS_ESRCADDR );
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
thanks - merged
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html