Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752938AbdGMTho (ORCPT ); Thu, 13 Jul 2017 15:37:44 -0400 Received: from mga05.intel.com ([192.55.52.43]:27946 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752587AbdGMThn (ORCPT ); Thu, 13 Jul 2017 15:37:43 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,355,1496127600"; d="scan'208";a="111046351" From: Mustafa Ismail To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, swise@opengridcomputing.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org, gregkh@linuxfoundation.org, shiraz.saleem@intel.com Subject: [PATCH 0/2] Fix modify_qp failure Date: Thu, 13 Jul 2017 14:37:36 -0500 Message-Id: <1499974658-6180-1-git-send-email-mustafa.ismail@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 536 Lines: 18 Commit 5ecce4c9b17b("Check port number supplied by user verbs cmds") causes modify_qp to fail because port_num is only valid when the mask is set. Additionally, for iWARP, the port_num is not initialized which also causes modify_qp to fail. This series fixes both issues. Mustafa Ismail (2): RDMA/uverbs: Fix the check for port number RDMA/core: Initialize port_num in qp_attr drivers/infiniband/core/cma.c | 2 ++ drivers/infiniband/core/uverbs_cmd.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.7.4