Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3183186ioo; Tue, 24 May 2022 15:28:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2BSHeVBoqzOwtLzFsl67CMkGLcjpHGWwD0qdY4kuSvFDGT21+cYwbOrte4hvdrsZu4ceg X-Received: by 2002:a17:902:cecb:b0:161:bbbf:c45f with SMTP id d11-20020a170902cecb00b00161bbbfc45fmr29983095plg.155.1653431288524; Tue, 24 May 2022 15:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653431288; cv=none; d=google.com; s=arc-20160816; b=TjE2PpurhFhWDIHzFv/vvZBqeGsWri/gGca0HO5Ks74JPfSdxFhNKzKoZNSKRdQaat TNAJE9WmLrB+iTm+zcQXteOKWunxfZ2HpeofnVz3BPfxgynWcyOJtgALsb/H9CIll2Gk x9BMKd8ZYUbm4JTZ90cOZVTzpl/VjAckKSsTKk3mAr8xoutY9Vxr2/uWUmYk8gPVzXOG 8fZyYOPkoAFSE9mUGUaIXKwJd9PH7dikx+vOzDE5yuC0ckqgu2/kJSn8Xrig1yMg+hxY 7f1AP6RAUK1W/XCAG803EAJ+71kEjr1BqqeHAYA8Kj6rrC8rcTgLnJ1/w/mQSlgQEK5r IokA== 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; bh=ui/LgXf22b9DWeHVTs6IiptEghIUX0SZQLsG9uTZfvs=; b=lDErtOU2EDWC54x49zcbMvNDgLVQQuBxknbC6gZQTfAICvpuTLoQD01+RAY6HSrnXL i8omEKMlycME7okx1vxpDVq7yTBeDgb5kx68FaVwVpzaOcOZ8P0uuDDGkI98oFU6eOXg xw7gE4NHFOCscol+lO+zQqNKEh7+U6VNP+dziuRwSiFtq5tk7tFhi3+tqcGkSyRld7XU 3rCNpiMgdtakL1K/HtF2Bsd4NG1swhQUIDhqN97TYLMvpLlNgiUywa+sQOT2P3HTNEKo FeUKbvBxPbRrMHgrQx/hUerdUs4KDdhZp4sAwKEo0RUUXV2JwkLrtL3Nf7XUjbJq5hM7 HeeQ== 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 ms12-20020a17090b234c00b001c9e1e7acc8si753243pjb.22.2022.05.24.15.27.56; Tue, 24 May 2022 15:28:08 -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 S236463AbiEXLQg (ORCPT + 99 others); Tue, 24 May 2022 07:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236519AbiEXLPv (ORCPT ); Tue, 24 May 2022 07:15:51 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1769891587 for ; Tue, 24 May 2022 04:15:50 -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 4L6s7m0kpLz4ySl; Tue, 24 May 2022 21:15:48 +1000 (AEST) From: Michael Ellerman To: Miaoqian Lin , Li Yang , Kumar Gala , linux-kernel@vger.kernel.org, Jin Qing , Alexandre Bounine , Liu Gang , Nicholas Piggin , Michael Ellerman , Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org In-Reply-To: <20220512123724.62931-1-linmq006@gmail.com> References: <20220512123724.62931-1-linmq006@gmail.com> Subject: Re: [PATCH] powerpc/fsl_rio: Fix refcount leak in fsl_rio_setup Message-Id: <165339058446.1718562.15673499679733918948.b4-ty@ellerman.id.au> Date: Tue, 24 May 2022 21:09:44 +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 Thu, 12 May 2022 16:37:18 +0400, Miaoqian Lin wrote: > of_parse_phandle() returns a node pointer with refcount > incremented, we should use of_node_put() on it when not need anymore. > Add missing of_node_put() to avoid refcount leak. > > Applied to powerpc/next. [1/1] powerpc/fsl_rio: Fix refcount leak in fsl_rio_setup https://git.kernel.org/powerpc/c/fcee96924ba1596ca80a6770b2567ca546f9a482 cheers