Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp684934pxb; Tue, 5 Apr 2022 18:42:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW0TgbYA0dVk7bd4+WKXx73xQwLbUWD8hkMzM2UixoiLCyC4DZxgRvKh0ZzeTWIWoHziId X-Received: by 2002:a05:6402:6c4:b0:41c:def8:baf5 with SMTP id n4-20020a05640206c400b0041cdef8baf5mr6396938edy.147.1649209374039; Tue, 05 Apr 2022 18:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209374; cv=none; d=google.com; s=arc-20160816; b=b33UAhWHeZ/dUVSzaORDkB+RizmytC3J5buNy/hiCxzube8Gc17qv1kzPAelZyY9HU b9YdOBOSdsL+7/Llongtzf4hGEzXpUCwyxacUNSxBgH80Q00BID2Bd/p6xSHjToOcTcv K+dc11+xWuw7kLh5ee1/xaDEf+W6Dq8TQrhfViwUUT0XyrulGdkCJImIQlocbs3iTmQb /W7923tjnb9WOSXztITb8EgGBZz2HM9itTP5II+CNe5ZSysLcJD50DVwm8os5bOnlEE5 l7WeNh5Be4xc+Eifa2RbxPmrNyLdnshHcq2u0UF589JMG2PqT2pNfNILQAPsX5yDbY0A COwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fe9BL83h49ATZJNPTM2dFnKWDrJ7SdEocy/KLwVtOvo=; b=mc4yTpLzPLudQCPXPiJ+g5ovy1lWxL4dxC/884A/yFwn/7HCsMxl8pB5Al8wLRjdpS K8L5ZRLntVsjndzrCOEt4f+nD0rbqzO5Lu2odXmLgysij6bWGgfse7c1AfxAA99vX3VX B5+mFfpiYK+x9Zq2XNCyWYqDX1aw1CqPsw2oC5CTqb/7NHHocavw9zRZ8qbo52uhXetf iiDO93JmmjImqDK48M/D7It5T+yXCHbFOzuRSA2nofO4bOgmcQqRtjj600J5qKT3zsVV r6LpFex1VguT2oIBs2o4CcQ2QiAmoHnrMUbuLwCSK4qGV8UwjMWYEHwnl/nbQgUpuOKT Q3BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ZQWL6/s5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fw9-20020a170907500900b006df76385d0esi9261816ejc.430.2022.04.05.18.42.24; Tue, 05 Apr 2022 18:42:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ZQWL6/s5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385007AbiDEMat (ORCPT + 99 others); Tue, 5 Apr 2022 08:30:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245756AbiDEI4z (ORCPT ); Tue, 5 Apr 2022 04:56:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E6619C2B; Tue, 5 Apr 2022 01:52:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D4409609D0; Tue, 5 Apr 2022 08:52:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5472C385A0; Tue, 5 Apr 2022 08:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148765; bh=G+tlzkSO4tf9ZQVjfwUjPYMxK5+NilPHHkn+It7OI2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZQWL6/s5R3TdT1Oya95zqBKDaCaASNTkv/C4v2TpcAO5XuIlPXlceiYg2PTkR0S/E ru2Yjqf6Gki8jEDk05fNL2ClcUqsC+CKETfr+84rZor9HTCWdKsIAB1nvTZVbMaxJl RAFQAouh3mFmIll/9eCRlVg3NEg+p3lxAurhG/aQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maor Gottlieb , Leon Romanovsky , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.16 0435/1017] RDMA/core: Set MR type in ib_reg_user_mr Date: Tue, 5 Apr 2022 09:22:28 +0200 Message-Id: <20220405070407.206922578@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maor Gottlieb [ Upstream commit 32a88d16615c2be295571c29273c4ac94cb75309 ] Add missing assignment of MR type to IB_MR_TYPE_USER. Fixes: 33006bd4f37f ("IB/core: Introduce ib_reg_user_mr") Link: https://lore.kernel.org/r/be2e91bcd6e52dc36be289ae92f30d3a5cc6dcb1.1642491047.git.leonro@nvidia.com Signed-off-by: Maor Gottlieb Signed-off-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/core/verbs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index c18634bec212..e821dc94a43e 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c @@ -2153,6 +2153,7 @@ struct ib_mr *ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, return mr; mr->device = pd->device; + mr->type = IB_MR_TYPE_USER; mr->pd = pd; mr->dm = NULL; atomic_inc(&pd->usecnt); -- 2.34.1