Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc35fac9 authored by Steve Wise's avatar Steve Wise Committed by Roland Dreier
Browse files

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: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent f6bccf69
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;