linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] iw_cxgb4: put ep reference in pass_accept_req()
@ 2017-09-13 16:52 Steve Wise
       [not found] ` <20170915140722.9641AE0C1D-/5N3P9jjx0xzbRFIqnYvSA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Wise @ 2017-09-13 16:52 UTC (permalink / raw)
  To: dledford; +Cc: linux-rdma, stable

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 <swise@opengridcomputing.com>
---
 drivers/infiniband/hw/cxgb4/cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index e49b34c..6d85a5d 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -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;
 }
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/3] iw_cxgb4: put ep reference in pass_accept_req()
       [not found] ` <20170915140722.9641AE0C1D-/5N3P9jjx0xzbRFIqnYvSA@public.gmane.org>
@ 2017-09-15 16:46   ` Greg KH
  2017-09-15 18:50     ` Steve Wise
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2017-09-15 16:46 UTC (permalink / raw)
  To: Steve Wise
  Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA, stable-u79uwXL29TY76Z2rM5mHXA

On Wed, Sep 13, 2017 at 09:52:32AM -0700, Steve Wise wrote:
> 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 <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
> ---
>  drivers/infiniband/hw/cxgb4/cm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
> index e49b34c..6d85a5d 100644
> --- a/drivers/infiniband/hw/cxgb4/cm.c
> +++ b/drivers/infiniband/hw/cxgb4/cm.c
> @@ -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;
>  }
>  
> -- 
> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH 1/3] iw_cxgb4: put ep reference in pass_accept_req()
  2017-09-15 16:46   ` Greg KH
@ 2017-09-15 18:50     ` Steve Wise
  0 siblings, 0 replies; 3+ messages in thread
From: Steve Wise @ 2017-09-15 18:50 UTC (permalink / raw)
  To: 'Greg KH'; +Cc: dledford, linux-rdma, stable

> 
> <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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-15 18:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-13 16:52 [PATCH 1/3] iw_cxgb4: put ep reference in pass_accept_req() Steve Wise
     [not found] ` <20170915140722.9641AE0C1D-/5N3P9jjx0xzbRFIqnYvSA@public.gmane.org>
2017-09-15 16:46   ` Greg KH
2017-09-15 18:50     ` Steve Wise

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).