iw_cxgb4: put ep reference in pass_accept_req()
Subsystems (3)
PATCH 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().
--- 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 · 1 line
1.8.3.1
Quoted 27 lines · Steve Wise
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 · 1 line
1.8.3.1
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>
--
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
Quoted 10 lines
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.</formletter>
Sorry Greg,
I screwed up and put the CC in the mail header instead of the commit log. I have posted a RESEND of the series.
Steve.