diff options
-rw-r--r-- | drivers/infiniband/core/cma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 69bb0892e88..f383a4f50ab 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c | |||
@@ -932,6 +932,7 @@ static int cma_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event) | |||
932 | mutex_unlock(&lock); | 932 | mutex_unlock(&lock); |
933 | if (ret) { | 933 | if (ret) { |
934 | ret = -ENODEV; | 934 | ret = -ENODEV; |
935 | cma_exch(conn_id, CMA_DESTROYING); | ||
935 | cma_release_remove(conn_id); | 936 | cma_release_remove(conn_id); |
936 | rdma_destroy_id(&conn_id->id); | 937 | rdma_destroy_id(&conn_id->id); |
937 | goto out; | 938 | goto out; |