Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4462286rwl; Wed, 28 Dec 2022 04:37:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXvb/LBdf6Ov6mri34RWQmnDJ0Qtt4Wj1fNNn+2dPs4FW5D104ALsoJWLZcEiZ6rHiqatXb3 X-Received: by 2002:a05:6a20:2a95:b0:b2:52b7:d627 with SMTP id v21-20020a056a202a9500b000b252b7d627mr35341730pzh.35.1672231040668; Wed, 28 Dec 2022 04:37:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672231040; cv=none; d=google.com; s=arc-20160816; b=PhTV3yqwl5ESnpI1uH1LqVWBQGGiHqJOyV5hIyjLetEx0ODjQQnCwiFAsYEtSgRlvc 7yR1FjeIfxBk/pfQyGJ1PVMMOcNCecNxhrjiyVnAbHd4pfVorczZd0XMb78XqOP2+GJo XoQnFVBymW0kM92sZtpXuZiflETE5cP1yQu9saHkXaMu89w0izw15LY5ITOTJ+LFuqKJ Qy9p5Cmj/9XTJyO7mNIscVkUoDlRjoT6eJpOdbs7pGxgKVqNVtstExz6mHolXVzGVlaD 9D67ctBcwPNCIfcD3gAJHl2SVk9X9WZ2Lva1cwGYaqxxpLQkzSjn/8TREgk542uBvMM7 m45w== 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:date :message-id:subject:references:in-reply-to:to:from:dkim-signature; bh=zk/rXc4Vd8qKFF5/yxFCnFX42Nl464xMX3PDwL2wavI=; b=W5Gjw5RXuLrwjZGlJpBUiALXeY2f2Spp4uqfnSIc5bhNdWiyzMbpiyy+cRFpWjq00E 4nmZ7gOFCsKntknbtMvVPo1T7BVthVZek+W3gJOxw79N0tnOh50YRpf6gqbmHNUgo4xe tPz5onp7Fbw6gqllDaLzNj0REHmLlMl7nUbAjbJnvmSdun2FhBnTZIgiauqqwvQBzzIe ClvPaWiXSjfeblfOEbEkz7RBMvrfRcrH5Ljmkau4yNe6Nv+yzeg/YYtePEtJuWujhoPR FSZe14i+1TyatGEwrZevCmnjV1hJMyPlNoMtxi+zXb6z+LPvq4hFNo+ZWK/TsXR9kJfS moGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TGL9rU32; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a6550c7000000b00478595f417dsi15450818pgp.103.2022.12.28.04.37.11; Wed, 28 Dec 2022 04:37:20 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=TGL9rU32; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbiL1MVZ (ORCPT + 65 others); Wed, 28 Dec 2022 07:21:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233072AbiL1MVH (ORCPT ); Wed, 28 Dec 2022 07:21:07 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11C0F398; Wed, 28 Dec 2022 04:20:58 -0800 (PST) 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 A313E61314; Wed, 28 Dec 2022 12:20:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B6D4C433EF; Wed, 28 Dec 2022 12:20:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672230057; bh=C7T4NVQ1zeuRB/WdHZAnJLTd1TxXdCWI5njfycxmT7A=; h=From:To:In-Reply-To:References:Subject:Date:From; b=TGL9rU32ZfsEbz4HQbyF34AC+5SUyfnoWadKg1SThfxBmQvBnQiiMV6EUzMqDxyk/ JcLnnRhQ2UxKWdRLX4tWGfkoAyoisOreEjGGG80cybzGYT5bugjDJHrwhIKBpECkVr algkesya59d1CUUtWj8QSfxvQWpCJchdSllyUCqNb6q4G4wtycIG/aTP/FzyWnXHID R8M794CFrFyIab542aEAU2QNTJsvnyUw6ibSgUk/2OjpPgCVEEUIBhCnNPGLKlAheB /4Teig5DSLWi4u0HOEPeu0eO6v23pzbdjbN88YjRb/pjg07zpJA0hf4e4mn2eDCH4a u1aosxqMhLo/w== From: Leon Romanovsky To: Wenpeng Liang , Yixing Liu , Jason Gunthorpe , Miaoqian Lin , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Haoyue Xu In-Reply-To: <20221223072900.802728-1-linmq006@gmail.com> References: <20221223072900.802728-1-linmq006@gmail.com> Subject: Re: [PATCH v2] RDMA/hns: Fix refcount leak in hns_roce_mmap Message-Id: <167223005274.61198.7536575567109139092.b4-ty@kernel.org> Date: Wed, 28 Dec 2022 14:20:52 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.11.0-dev-87e0e 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 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 On Fri, 23 Dec 2022 11:29:00 +0400, Miaoqian Lin wrote: > rdma_user_mmap_entry_get_pgoff() takes the reference. > Add missing rdma_user_mmap_entry_put() to release the reference. > > Applied, thanks! [1/1] RDMA/hns: Fix refcount leak in hns_roce_mmap https://git.kernel.org/rdma/rdma/c/cf6a05c8494a8a Best regards, -- Leon Romanovsky