Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1917101rwb; Fri, 2 Dec 2022 03:02:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf5dFViOaCdtQvO5k5qAD+3zRa/3LvXQJl8CDDtEENt+8XN7GdONpFKxMPYQvP9kmIVuxuVB X-Received: by 2002:a17:906:a58:b0:7ad:b45c:dbca with SMTP id x24-20020a1709060a5800b007adb45cdbcamr49410404ejf.388.1669978941756; Fri, 02 Dec 2022 03:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669978941; cv=none; d=google.com; s=arc-20160816; b=mm4UImONMBtXACVZhTNorR4MX6ztC9H68tMHsiUvWoefgC2WF8xieyd7OjJX29r6Lb /fz8xODDGNHFZxHmGq9E1WAcNUPs1FqqPLO4xeZIeLBnU4fsDY03GdfZnkctpqago+9Y 317ewjQcH/PrHQQElUubCd/jr4pqF7BLSPtDRqXguK4/Qu3UPF7xvKsIlP2qTSK8/H70 eadTtqUx92wPRgwL4OCL6se58wfVdXyuRr4ZlYyX0I+ATrObzAeTONIUwgCKS0V4SOCj vIXMtbxOA1RwHzPCTbxeNo3LarAiuDq2gJuZFAMImqYDjWYZQBwOhR92yglEgWgp10WH 3gUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=kTNFbUR18RM+g2bmQDCQghLPyFTxd13WUqH39teduEA=; b=to0gLSAGS4sKmIE6JoeezJLv8Ook3pBrBT2DflWAyxH+KtjL6Ci7Px5J7QHfd8y+Lb RVngyifaAEVtEFX2mEPSxp8xPqBe0DEJhPKXNgmJS42RI4JFRPkdC7pxgiyCll+mwuRm GoPeldU/Y6HI+4kbpeqzill91dJcB0utvnqLUQQWPoD+aCZHy0MvRJBfOrRVciBtjGKb jIgslP6ksX/NhUzQ2LnOlNkiKEgFFELl9gB51A3HFcJb8VexQj6a+LF36g49jSgeTFX2 JFguz7wB2tiGPdSl7pTvEjwB0eBW07PY8SYBC2W5TduB1sSUJ3oDV7wPRDJ1UIdXUPPs ihYw== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a056402268100b0046ac017b01csi7019316edd.617.2022.12.02.03.01.49; Fri, 02 Dec 2022 03:02:21 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232598AbiLBK7S (ORCPT + 99 others); Fri, 2 Dec 2022 05:59:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230094AbiLBK7R (ORCPT ); Fri, 2 Dec 2022 05:59:17 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1EDFA1A03 for ; Fri, 2 Dec 2022 02:59:16 -0800 (PST) Received: from dggpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NNqgC0zldzJqLM; Fri, 2 Dec 2022 18:58:31 +0800 (CST) Received: from [10.174.179.5] (10.174.179.5) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 2 Dec 2022 18:59:15 +0800 Subject: Re: [PATCH] hwrng: amd - Fix PCI device refcount leak To: Herbert Xu CC: , , , , References: <20221123093949.115579-1-wangxiongfeng2@huawei.com> From: Xiongfeng Wang Message-ID: <4f27474d-7fe5-d1cb-0be8-387b0562e629@huawei.com> Date: Fri, 2 Dec 2022 18:59:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.5] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 2022/12/2 17:43, Herbert Xu wrote: > 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. Ah, Sorry, my mistake! I will send another version with the fix of geode-rng. Thanks, Xiongfeng > > Thanks, >