]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/rtrs-clt: Remove destroy_con_cq_qp in case route resolving failed
authorDanil Kipnis <danil.kipnis@cloud.ionos.com>
Fri, 23 Oct 2020 07:43:42 +0000 (09:43 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 28 Oct 2020 16:17:39 +0000 (13:17 -0300)
commit2b3062e4d997f201c1ad2bbde88b7271dd9ef35f
treec4a9cbf14d3d9a8c1e0d536e76c05f83f45ab76c
parentaba457ca890c6a8042ba941a71129337b858d993
RDMA/rtrs-clt: Remove destroy_con_cq_qp in case route resolving failed

We call destroy_con_cq_qp(con) in rtrs_rdma_addr_resolved() in case route
couldn't be resolved and then again in create_cm() because nothing
happens.

Don't call destroy_con_cq_qp from rtrs_rdma_addr_resolved, create_cm()
does the clean up already.

Fixes: 6a98d71daea1 ("RDMA/rtrs: client: main functionality")
Link: https://lore.kernel.org/r/20201023074353.21946-2-jinpu.wang@cloud.ionos.com
Signed-off-by: Danil Kipnis <danil.kipnis@cloud.ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs-clt.c