iw_cxgb4: put ep reference in pass_accept_req()
Subsystems (2)
PATCH RESEND 1/3 iw_cxgb4: put ep reference in pass_accept_req()
The listening endpoint should always be dereferenced at the end of pass_accept_req().
Fixes f86fac79afec ("RDMA/iw_cxgb4: atomic find and reference for listening endpoints")
Signed-off-by Steve Wise <[email protected]>
--- drivers/infiniband/hw/cxgb4/cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/cxgb4/cm.c +1 -1
@@ -2594,9 +2594,9 @@ static int pass_accept_req(struct c4iw_dev *dev, struct sk_buff *skb)c4iw_put_ep (&child_ep->com); reject:reject_cr (dev, hwtid, skb); +out:if (parent_ep)c4iw_put_ep (&parent_ep->com); -out:return 0 ; }
Signature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html