stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mustafa Ismail <mustafa.ismail@intel.com>
To: mustafa.ismail@intel.com
Cc: shiraz.saleem@intel.com, tatyana.e.nikolova@intel.com,
	"# v2 . 6 . 14+" <stable@vger.kernel.org>
Subject: [PATCH v2 2/2] RDMA/core: Initialize port_num in qp_attr
Date: Fri, 14 Jul 2017 09:02:11 -0500	[thread overview]
Message-ID: <1500040931-19400-3-git-send-email-mustafa.ismail@intel.com> (raw)
In-Reply-To: <1500040931-19400-1-git-send-email-mustafa.ismail@intel.com>

Initialize the port_num for iWARP in rdma_init_qp_attr.

Fixes: 5ecce4c9b17b("Check port number supplied by user verbs cmds")
Cc: <stable@vger.kernel.org> # v2.6.14+
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
---
 drivers/infiniband/core/cma.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 31bb82d..d65a093 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1044,6 +1044,8 @@ int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr,
 		} else
 			ret = iw_cm_init_qp_attr(id_priv->cm_id.iw, qp_attr,
 						 qp_attr_mask);
+		qp_attr->port_num = id_priv->id.port_num;
+		*qp_attr_mask |= IB_QP_PORT;
 	} else
 		ret = -ENOSYS;
 
-- 
2.7.4

  parent reply	other threads:[~2017-07-14 14:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1500040931-19400-1-git-send-email-mustafa.ismail@intel.com>
2017-07-14 14:02 ` [PATCH v2 1/2] RDMA/uverbs: Fix the check for port number Mustafa Ismail
2017-07-14 14:02 ` Mustafa Ismail [this message]
2017-07-14 14:41 [PATCH v2 0/2] Fix modify_qp failure Mustafa Ismail
2017-07-14 14:41 ` [PATCH v2 2/2] RDMA/core: Initialize port_num in qp_attr Mustafa Ismail
2017-07-17 19:10   ` Marciniszyn, Mike
2017-07-19  8:09     ` Kalderon, Michal
2017-07-19 14:38       ` Ismail, Mustafa
2017-07-19 15:09         ` Kalderon, Michal
     [not found] <1500040430-12844-1-git-send-email-mustafa.ismail@intel.com>
2017-07-14 13:53 ` Mustafa Ismail

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1500040931-19400-3-git-send-email-mustafa.ismail@intel.com \
    --to=mustafa.ismail@intel.com \
    --cc=shiraz.saleem@intel.com \
    --cc=stable@vger.kernel.org \
    --cc=tatyana.e.nikolova@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).