Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1863949rwb; Fri, 2 Dec 2022 02:07:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf5n2ayA3ucaU+X32fxLhxlpzqJDRf8//HdWZzEO+OkdX20wxIt1/VpPMuUOL6H6C7W36HR0 X-Received: by 2002:a17:906:7f09:b0:7c0:b3a8:a5f9 with SMTP id d9-20020a1709067f0900b007c0b3a8a5f9mr5398775ejr.154.1669975639802; Fri, 02 Dec 2022 02:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669975639; cv=none; d=google.com; s=arc-20160816; b=zNQRJZmFf63GAOtf/wRK6Z6pXfAVLmwqu760V6wc+KF2nABJr6oHF/LKDQu2v3Epag GD3XPEiefbxBuK0XTep2t26hK4FVX1uJS8zRZKyXhG2QrAr20XnJI/tOOovuzD6oqIgS jEV7Ly/n1GaO4TqEdPQ+42cRRW9uqxeEI2s6YjDdZAPXU2gLyne5B4VaTmEMeRVLtjyb BHjMalHx/fiKSdxCOruj2F/oGbb229vbyoQ7GMhHkuftlTJGcxOiJ283uV5j/FNAmYK1 f/kdh1BFXaQAo2FBnugIolktACldF/Oyw/TKjSclHaPBJTAelafvbQ6ai1sceM7ZndXA t7tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=N2SF961R7Z3r6y9nFfilST4eT1zgoLMYu5zTrpsY9Rw=; b=RTNJnRonJPNzjkv+oyV8DEky6KIYgVGVhk5zUB9CAg/5cvHWB6TlytG2I7zG/+yiYA i2bqmbnOXKZ1kmlJ4th1QApcNB9FDEmIEOe1Ln9yaGYoa3JJxnOKuOA8NwZGaLy8gXtX kdQ1LbWPw6yFcV8gqyP1Vzzrajx85LE5UXkfOnADobFB8DAfjborHu93mD+CxrSZEkew pQ+VUvGmS1ZQQMdAMOsb3mn2dBXGBKUeX3Nq/EB1HJjrm6R2kRt4kNWdUPixcHXY66mi A5RkxYcRkOuWI0sz1N98pkThnyDHvoAF+2DM8uFm6C3B2qrdMpEoPuhRYDbV6RBcmvbr JLgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht8-20020a170907608800b007aea9dfb4f5si6724586ejc.511.2022.12.02.02.06.30; Fri, 02 Dec 2022 02:07:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232442AbiLBJnv (ORCPT + 99 others); Fri, 2 Dec 2022 04:43:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231833AbiLBJnu (ORCPT ); Fri, 2 Dec 2022 04:43:50 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00BDEBE101 for ; Fri, 2 Dec 2022 01:43:49 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1p12a9-003BPf-6L; Fri, 02 Dec 2022 17:43:46 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 02 Dec 2022 17:43:45 +0800 Date: Fri, 2 Dec 2022 17:43:45 +0800 From: Herbert Xu To: Xiongfeng Wang Cc: olivia@selenic.com, mpm@selenic.com, mb@bu3sch.de, linux-crypto@vger.kernel.org, yangyingliang@huawei.com Subject: Re: [PATCH] hwrng: amd - Fix PCI device refcount leak Message-ID: References: <20221123093949.115579-1-wangxiongfeng2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221123093949.115579-1-wangxiongfeng2@huawei.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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-crypto@vger.kernel.org On Wed, Nov 23, 2022 at 05:39:49PM +0800, Xiongfeng Wang wrote: > > @@ -201,6 +207,8 @@ static void __exit amd_rng_mod_exit(void) > release_region(priv->pmbase + PMBASE_OFFSET, PMBASE_SIZE); > > kfree(priv); > + > + pci_dev_put(priv->pcidev); Oops, this doesn't look right. Please fix and resubmit. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt