Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp710483pxb; Tue, 5 Apr 2022 19:47:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfAfJQvH471kMO8pHUXWjR/qxHC/qTRsvT4cdT/vYDbcy5WNqPd+rfLwlQwScohlHwA4K0 X-Received: by 2002:a05:6402:2711:b0:419:5a50:75ef with SMTP id y17-20020a056402271100b004195a5075efmr6590243edd.280.1649213268938; Tue, 05 Apr 2022 19:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649213268; cv=none; d=google.com; s=arc-20160816; b=GLg8vCizcDt4ofpxjQoIBKSfsYJ5XDWrXyowWextAsmU34YHsyh8OSFQ1FPsXUMpsa Etgs9QeYxn0aE/quCtqfn27R+AIonwAvFLoHfIagw01bJTMa7e1i1tdFAPY3WzfwO84m T5zKF9lfiMTERsCWpUQB2wlLF7axCfCntRu/K2XTTi9MTVxsYhqsTmKqWHhLQnr8bjQR f3Tqa2/6924zMn6dv3ysqtDjmyOLF7HQTS4U7KneMi7Wbrd4Lp/BbkYWwwdFey5cBerf ukPgq+B2K5h5EBvcYw3/K2QDXusTvrUMmO4Q9hGg+uosjTTDQVrm6/j65Y80DmM6CNbO SJzQ== 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=R+BVdnWTjrN/dsdwqmv1v6qDC5Y8oSDGrQKeuFFHHXfU1Dx+oWardPeRflgwk5huiG etcUXa9Klq4ko68ydC3/od8mEu3sGLh59zLh84pTbpWi9w9drgoB58S/zzCixe0otvtM KgVeO9hOc5AC2S0gUfEF9K73HPJibop/ZzKs5cB9Sl8xfxVjxPe/oevH8/lWf0OBFgRa OH62iHrNykytYsZ0Fxyf38Gr0SZ0RCgP92bMgms2fICIUpbVaeGZnpAb7/nIbnDgZefk 4VPsIvkhX2OWHlHXPyU77cbFOT3DElhH7O0HB0RWew3c4lsb/Rw195DSNapuh+BlV0kT nhqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vC6fAK02; 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 q19-20020a056402519300b00418c2b5bf7csi12232748edd.606.2022.04.05.19.47.20; Tue, 05 Apr 2022 19:47:48 -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=vC6fAK02; 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 S240445AbiDEIq2 (ORCPT + 99 others); Tue, 5 Apr 2022 04:46:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233639AbiDEIIq (ORCPT ); Tue, 5 Apr 2022 04:08:46 -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 7A2186C1D9; Tue, 5 Apr 2022 01:02:15 -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 1F606617DA; Tue, 5 Apr 2022 08:02:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DA68C385A6; Tue, 5 Apr 2022 08:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145734; bh=G+tlzkSO4tf9ZQVjfwUjPYMxK5+NilPHHkn+It7OI2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vC6fAK027n6rzoJgQEDiBAkix6a9U4ARcWoEw9rwajiqPz1l0qG4Xf+ObUX5Mxu+T zQr4EhBYqDRsIqG/5zB+H8M2B2FeSdo1GwZk4QvDT27FzWzc15TgcArokAk69fniT3 DbsCq3a2s/l7ytbuyOy/lsifvzshMsJnSMBVyddY= 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.17 0472/1126] RDMA/core: Set MR type in ib_reg_user_mr Date: Tue, 5 Apr 2022 09:20:19 +0200 Message-Id: <20220405070421.481416891@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@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