Skip to contentSkip to conversation

iw_cxgb4: put ep reference in pass_accept_req()

PATCH RESEND New Steve Wise 1 participant 1 message Sep 13, 2017

Subsystems (2)
lore
Share & tools
lore

Steve Wise

author
#0 lore raw

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")
---
 drivers/infiniband/hw/cxgb4/cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/cxgb4/cm.c +1 -1
index e49b34c..6d85a5d 100644
@@ -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