Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754514AbdGNOlv (ORCPT ); Fri, 14 Jul 2017 10:41:51 -0400 Received: from mga04.intel.com ([192.55.52.120]:63971 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754456AbdGNOlt (ORCPT ); Fri, 14 Jul 2017 10:41:49 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,359,1496127600"; d="scan'208";a="125155115" From: Mustafa Ismail To: linux-rdma@vger.kernel.org, dledford@redhat.com Cc: swise@opengridcomputing.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org, e1000-rdma@lists.sourceforge.net, shiraz.saleem@intel.com Subject: [PATCH v2 0/2] Fix modify_qp failure Date: Fri, 14 Jul 2017 09:41:29 -0500 Message-Id: <1500043291-19768-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: 601 Lines: 22 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. Changes to V2: * Add reviewed-by * Cc: 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