[ofa-general] [PATCH] RDMA/cxgb3: Remove cmid reference on tid allocation failures.
Steve Wise
swise at opengridcomputing.com
Fri Oct 10 12:21:28 PDT 2008
From: Steve Wise <swise at opengridcomputing.com>
The error path in iwch_connect() can fail to remove the cmid reference,
which will cause the process to hang when destroying the cmid.
Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---
drivers/infiniband/hw/cxgb3/iwch_cm.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index c325c44..44e936e 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -1942,6 +1942,7 @@ fail4:
fail3:
cxgb3_free_atid(ep->com.tdev, ep->atid);
fail2:
+ cm_id->rem_ref(cm_id);
put_ep(&ep->com);
out:
return err;
More information about the general
mailing list