RDMA/cxgb3: Remove cm_id reference on listen failures
authorSteve Wise <swise@opengridcomputing.com>
Wed, 11 Jul 2007 18:04:35 +0000 (13:04 -0500)
committerRoland Dreier <rolandd@cisco.com>
Wed, 18 Jul 2007 01:37:38 +0000 (18:37 -0700)
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_cm.c

index 3b41dc0c39dd9c2da189273862ae5c1cf3362be3..5dc68cd5621b4e574d49d37da181287f9fb5da74 100644 (file)
@@ -1914,6 +1914,7 @@ int iwch_create_listen(struct iw_cm_id *cm_id, int backlog)
 fail3:
        cxgb3_free_stid(ep->com.tdev, ep->stid);
 fail2:
+       cm_id->rem_ref(cm_id);
        put_ep(&ep->com);
 fail1:
 out: