RDMA/cxgb3: Remove cm_id reference on listen failures
Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
cb32da0416
commit
1b07db7079
|
@ -1914,6 +1914,7 @@ int iwch_create_listen(struct iw_cm_id *cm_id, int backlog)
|
||||||
fail3:
|
fail3:
|
||||||
cxgb3_free_stid(ep->com.tdev, ep->stid);
|
cxgb3_free_stid(ep->com.tdev, ep->stid);
|
||||||
fail2:
|
fail2:
|
||||||
|
cm_id->rem_ref(cm_id);
|
||||||
put_ep(&ep->com);
|
put_ep(&ep->com);
|
||||||
fail1:
|
fail1:
|
||||||
out:
|
out:
|
||||||
|
|
Reference in New Issue