From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3EB8C433F5 for ; Tue, 24 May 2022 11:16:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236649AbiEXLQ5 (ORCPT ); Tue, 24 May 2022 07:16:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236622AbiEXLQF (ORCPT ); Tue, 24 May 2022 07:16:05 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06DFFE0AB for ; Tue, 24 May 2022 04:16:04 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4L6s810S6Qz4yTT; Tue, 24 May 2022 21:16:01 +1000 (AEST) From: Michael Ellerman To: benh@kernel.crashing.org, mpe@ellerman.id.au, nick.child@ibm.com, Peng Wu Cc: wangxiongfeng2@huawei.com, liwei391@huawei.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <20220425081245.21705-1-wupeng58@huawei.com> References: <20220425081245.21705-1-wupeng58@huawei.com> Subject: Re: [PATCH -next] powerpc/iommu: Add missing of_node_put in iommu_init_early_dart Message-Id: <165339058771.1718562.10340726142485751524.b4-ty@ellerman.id.au> Date: Tue, 24 May 2022 21:09:47 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Apr 2022 08:12:45 +0000, Peng Wu wrote: > The device_node pointer is returned by of_find_compatible_node > with refcount incremented. We should use of_node_put() to avoid > the refcount leak. > > Applied to powerpc/next. [1/1] powerpc/iommu: Add missing of_node_put in iommu_init_early_dart https://git.kernel.org/powerpc/c/57b742a5b8945118022973e6416b71351df512fb cheers From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C1BBC433F5 for ; Tue, 24 May 2022 11:28:42 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4L6sQd0Jd4z3dsY for ; Tue, 24 May 2022 21:28:41 +1000 (AEST) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4L6s834PVHz3bsr for ; Tue, 24 May 2022 21:16:03 +1000 (AEST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4L6s810S6Qz4yTT; Tue, 24 May 2022 21:16:01 +1000 (AEST) From: Michael Ellerman To: benh@kernel.crashing.org, mpe@ellerman.id.au, nick.child@ibm.com, Peng Wu In-Reply-To: <20220425081245.21705-1-wupeng58@huawei.com> References: <20220425081245.21705-1-wupeng58@huawei.com> Subject: Re: [PATCH -next] powerpc/iommu: Add missing of_node_put in iommu_init_early_dart Message-Id: <165339058771.1718562.10340726142485751524.b4-ty@ellerman.id.au> Date: Tue, 24 May 2022 21:09:47 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, liwei391@huawei.com, wangxiongfeng2@huawei.com, linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Mon, 25 Apr 2022 08:12:45 +0000, Peng Wu wrote: > The device_node pointer is returned by of_find_compatible_node > with refcount incremented. We should use of_node_put() to avoid > the refcount leak. > > Applied to powerpc/next. [1/1] powerpc/iommu: Add missing of_node_put in iommu_init_early_dart https://git.kernel.org/powerpc/c/57b742a5b8945118022973e6416b71351df512fb cheers