From: Steve Wise Date: Wed, 13 Sep 2017 16:52:32 +0000 (-0700) Subject: iw_cxgb4: put ep reference in pass_accept_req() X-Git-Tag: MMI-PSA29.97-13-9~4654^2~20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d318605f5e32ff44fb290d9b67573b34213c4c8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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") Cc: stable@vger.kernel.org Signed-off-by: Steve Wise Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index ceaa2fa54d32..83322dbc4711 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -2594,9 +2594,9 @@ fail: 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; }