* Patch "iw_cxgb4: drop listen destroy replies if no ep found" has been added to the 4.13-stable tree
@ 2017-10-02 12:00 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-10-02 12:00 UTC (permalink / raw)
To: swise, dledford, gregkh; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
iw_cxgb4: drop listen destroy replies if no ep found
to the 4.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
iw_cxgb4-drop-listen-destroy-replies-if-no-ep-found.patch
and it can be found in the queue-4.13 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 3c8415cc7aff467faba25841fb859660ac14a04e Mon Sep 17 00:00:00 2001
From: Steve Wise <swise@opengridcomputing.com>
Date: Tue, 5 Sep 2017 11:52:33 -0700
Subject: iw_cxgb4: drop listen destroy replies if no ep found
From: Steve Wise <swise@opengridcomputing.com>
commit 3c8415cc7aff467faba25841fb859660ac14a04e upstream.
If the thread waiting for a CLOSE_LISTSRV_RPL times out and bails,
then we need to handle a subsequent CPL if it arrives and the stid has
been released. In this case silently drop it.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/infiniband/hw/cxgb4/cm.c | 5 +++++
1 file changed, 5 insertions(+)
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -2333,9 +2333,14 @@ static int close_listsrv_rpl(struct c4iw
unsigned int stid = GET_TID(rpl);
struct c4iw_listen_ep *ep = get_ep_from_stid(dev, stid);
+ if (!ep) {
+ pr_debug("%s stid %d lookup failure!\n", __func__, stid);
+ goto out;
+ }
pr_debug("%s ep %p\n", __func__, ep);
c4iw_wake_up(&ep->com.wr_wait, status2errno(rpl->status));
c4iw_put_ep(&ep->com);
+out:
return 0;
}
Patches currently in stable-queue which might be from swise@opengridcomputing.com are
queue-4.13/iw_cxgb4-drop-listen-destroy-replies-if-no-ep-found.patch
queue-4.13/iw_cxgb4-put-ep-reference-in-pass_accept_req.patch
queue-4.13/iw_cxgb4-remove-the-stid-on-listen-create-failure.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-10-02 11:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-02 12:00 Patch "iw_cxgb4: drop listen destroy replies if no ep found" has been added to the 4.13-stable tree gregkh
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).