Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3020476pxp; Tue, 8 Mar 2022 06:24:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKwxNPAX1GyReFMzkhml6MLOm+Zet6Mn3zq3hPD78EWAE1AziKu8r3H332KHPv/mZm57Q7 X-Received: by 2002:a17:907:971b:b0:6db:32b4:f262 with SMTP id jg27-20020a170907971b00b006db32b4f262mr7626937ejc.522.1646749447708; Tue, 08 Mar 2022 06:24:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646749447; cv=none; d=google.com; s=arc-20160816; b=JSEaTeQhwyJ0z/d/YUraE/PDqsjOKhoNV/yxFx7nTxF6cVFlTVt4OhSoOn+aHGm1UB 84KwTGvH/7d4ECOXmJHuZBofAxVSpqVWcUBiTepsucfjP6kulT+yrpJWhYEHTAqJHD/u j2iH85dRFSa26zry4EjoM0x6yKBwfdWK+Lu/hvoOSLjysIb5DhK5bh0py4n7D9NDEnjI SNHI3/pJsjJKg9gyf3n9RhCy0zmzJyD8rde1H0OkL/IFaxJwMg3424w5ke6LDxKMxudK oZYrffrzQMHyMgOXKa9C17RXUFhIOEFjPCQgR4hrvEajYDRZNmaI0RSY4JbwjYQXgAI3 uisw== 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:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=5LmLNihjNdpWb8fjTWRVbbXe6x8zbTRf5aXrRA/r/vg=; b=J+JjyPikwrS9oBxbtg7Dlr2TKcsgtRmWofxJgWntNvUi6JoPYYXF6tFg0SxszHRKmD vEP0yW34/CfPcjVnp3Wh7G6LyQznCV0Mzz3BnRGqRxa1kEVZr+Atux+JoWa+WAK0HXGU XMsDgaWf08Hw5iwsxgbMkNTGkjCQuq9n9uINWIxNsi9t5Zc1OijfTQGfRLODOoXq1k/e zeaCAfgFJsNHMIi3/2kazvMKo3XGtgZXXVbsh9X2sr46oX6su2TTtb0D59/rQHPempDM NHv0jrgBc1X+GQUi4Hj5FPng8NlSI9+8rd5FKXTvzuD43yfWBv0RZEXAYdmzJzZQcnOT p1Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U8rzKHNY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d22-20020a056402001600b00412df126c92si10267722edu.628.2022.03.08.06.23.44; Tue, 08 Mar 2022 06:24:07 -0800 (PST) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=U8rzKHNY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244185AbiCHLbe (ORCPT + 99 others); Tue, 8 Mar 2022 06:31:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231408AbiCHLbd (ORCPT ); Tue, 8 Mar 2022 06:31:33 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 924EF3FD96 for ; Tue, 8 Mar 2022 03:30:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646739037; x=1678275037; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=FfySqN0vQa4ttzZHSXEhhQ3ALTvA9lNDII7nXpWIblk=; b=U8rzKHNYjTsRYwrs7GJcPeXlo4I63PIkKzhiRmKTJt4KNVJ88RyMVh8L +N8gdxbSNmtYDoNwzX5+AnaGVHRJ5H1LfR6WOh4ZKzmvVu8y5R6ogPri6 11ogS0k8GK5wAplADUH6k54ji21iFE7FtPTON1WESNRWzkRFRnZLw2oJh ovwULfLkXMTWu9tUMTo1d5BcW0qFbSfMYPeMgrJY/NxcTINttBAzHUXXz GgA4jNqP5tvSMyzbCyMzAc5ib2gfSRPJmUnffNQDPrgB+Rt8i91HjaHgv unQcA7zzLfFEgTZF/EIICRtg93n84+gbM9ftR3KPWKJUCiX72QczU5BO0 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10279"; a="341093265" X-IronPort-AV: E=Sophos;i="5.90,164,1643702400"; d="scan'208";a="341093265" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 03:30:37 -0800 X-IronPort-AV: E=Sophos;i="5.90,164,1643702400"; d="scan'208";a="687893094" Received: from nsedoc-mobl.ger.corp.intel.com (HELO [10.251.218.162]) ([10.251.218.162]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 03:30:33 -0800 Message-ID: <886a7712-ffdc-4d0c-fde5-5498b84e416c@linux.intel.com> Date: Tue, 8 Mar 2022 13:30:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] ASoC: SOF: Add missing of_node_put() in imx8m_probe Content-Language: en-US To: Miaoqian Lin , Pierre-Louis Bossart , Liam Girdwood , Ranjani Sridharan , Kai Vehmanen , Daniel Baluta , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Viorel Suman , sound-open-firmware@alsa-project.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220308023325.31702-1-linmq006@gmail.com> From: =?UTF-8?Q?P=c3=a9ter_Ujfalusi?= In-Reply-To: <20220308023325.31702-1-linmq006@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 08/03/2022 04:33, Miaoqian Lin wrote: > The device_node pointer is returned by of_parse_phandle() with refcount > incremented. We should use of_node_put() on it when done. Reviewed-by: Peter Ujfalusi > Fixes: afb93d716533 ("ASoC: SOF: imx: Add i.MX8M HW support") > Signed-off-by: Miaoqian Lin > --- > sound/soc/sof/imx/imx8m.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sound/soc/sof/imx/imx8m.c b/sound/soc/sof/imx/imx8m.c > index 788e77bcb603..60251486b24b 100644 > --- a/sound/soc/sof/imx/imx8m.c > +++ b/sound/soc/sof/imx/imx8m.c > @@ -224,6 +224,7 @@ static int imx8m_probe(struct snd_sof_dev *sdev) > } > > ret = of_address_to_resource(res_node, 0, &res); > + of_node_put(res_node); > if (ret) { > dev_err(&pdev->dev, "failed to get reserved region address\n"); > goto exit_pdev_unregister; -- Péter