From: Steve Wise Date: Wed, 15 Oct 2008 17:50:34 +0000 (-0700) Subject: RDMA/cxgb3: Remove cmid reference on tid allocation failures X-Git-Tag: v2.6.28-rc1~61^2^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=dc35fac9e936c6cc6ad825fc7e4455468d10adc6;p=linux-2.6-omap-h63xx.git RDMA/cxgb3: Remove cmid reference on tid allocation failures The error path in iwch_connect() can fail to drop the cmid reference, which will cause the process to hang when destroying the cmid. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c index c325c44807e..44e936e48a3 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;