Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3057905ioo; Tue, 24 May 2022 12:02:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+MZrNfLqAKP1vVgiiz3k6e4qOyi/jLmzMa1e+C1ZJyeG60pkuKpfdlKujlHSkmwu6jJ1k X-Received: by 2002:a05:6402:293:b0:42a:aece:5c5c with SMTP id l19-20020a056402029300b0042aaece5c5cmr30527679edv.108.1653418952622; Tue, 24 May 2022 12:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653418952; cv=none; d=google.com; s=arc-20160816; b=uXfmHZQaE2I1FlmVRmGLiJLMdKfgd39a7K7dTVxEcynbDbXr/rr69E6vPpRRnQPiWx KP+XV8BcdCPRWdiaEdsQy0/rMTvX+DLJKDV+/BhKM9GLjZdyjQnvYz5PtH0/y1U/xMHA lOMrwAjXOP0kt8L0Lv2UQ0EuGBV1Fn8+RqDUniZq1InYpRgODitzumblapuAAVn6arPm 8kjqfkJxeiQOf1FG0lYhe/U56jGfiih2MOvNUu3q30JW/O+BD7NNmK0iQRLja/i9iyTH l1lofiYN8F0SyKrgFzlZRfkV0wTIDWW7uQtmToaVOxPyueq34dv57OBhGKFNXwul5JrR cU4w== 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:cc:to:from; bh=PrBTHC3UriiaL56r/f/pPddvNxyYwMcaO5jPOVrXchk=; b=xuuKoTqzKMbchmDm2FWiaq5OMvPgx3YrwStMIu2hvyhFFWzygL0SxZG3Qvug2FU/8w 9UoDFjtb9LsEURjw5lv3C4o2Rey+Q8QcWPTQYSqv4Px+TibmeBidAgCS3R9dQirr7if6 Ue2PJqAkjQbvcf3HYoqmoFdcSylQ5Z6j9s2745sXDdihTbeksjKhatDPKp0fFZgiF7D/ 0x8Majd23VlKAngB02+ReX7lxX8tTxU1cG4EihCeTkNqnNJvV3jZJ2s5EW54NBKEjjlp XoEqmqmhz02Wrj1grS36rc5AY2P7JWUSBDpmkSKHlXwfbfBmW9aaR99FBtRCpLxgjHHo 5cmw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm22-20020a0564020b1600b00425ef55d1fesi17172481edb.447.2022.05.24.12.02.05; Tue, 24 May 2022 12:02:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236582AbiEXLQ4 (ORCPT + 99 others); Tue, 24 May 2022 07:16:56 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 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