Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3675479pxb; Mon, 24 Jan 2022 15:05:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhDx0ltPp7mmkQQXuAAM++NnVMc2uGqFNMUxrHz8D32Nwz7HnEPQFcjVqzy/mzm2eLQbD2 X-Received: by 2002:a17:90b:1c8c:: with SMTP id oo12mr572397pjb.148.1643065508946; Mon, 24 Jan 2022 15:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643065508; cv=none; d=google.com; s=arc-20160816; b=UE7tQdFstilRktdpO4v5qucniLdY7yU8GPHYj2u3qT4uOitPI/oqC3wuLwHxq4QlUT L9bq1OP735b0YqYec4XvIneCunvBHDVl6wExD3wO2Nc4PgCR+ItsQCeCbGOsB8OiWIZt mxqcqnfZw1DNDqCPZhT0rvocN5642OeUMWYBtS5A0Eqnn3uYZWf7N1NPGYUkLnhw6lio zZuxSNeNozn8IYhMlheW86k9uBCb2JvsYHD34Ilfv2DG8yGZWpfDA+vdRNVo0OD8U8XJ rK/bdqLRbG+AGrabyh5AseG5OxS3jHheMyuNUO7NKemSDUHqQdwNbmZv5o4/jg/Ukb1E d0ww== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=d/Vk+ZOqaLI9HL6yssFzVFA05JMJ4skCj2pQKObTHPk=; b=yfpVAil9KmFFxvOQV6q42FRJ6rsmqfr9RGRcQxCtn1YydStxG5joIkbVDWBay3NC1e +1NHd4ASZfvcAGqWBxJUPfDSMNgG5Dc8+6ocGVuNXJBpU3qsKkuliw3OXxmY0ewXZBdE fbmYqwYUt5wioAbXZr1Fv1M1EPm7NQNunVz2gDWyN2soGMDSF0GU/OuKCxC//xG/wajA 3E5tMJX0rBmabEjh6jhyCv8per/8JUP3sVK++i/QzAdLnXFtSBaBG/PBOkxoYuRX/mru MPlRsZF5bHZ4bka1PVzVGxYSF7g9m6BaPY9kSWx6fhXU4fl4dVmup5Jf7CkE1DbooQbj mqpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="rQ/u/gs5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si3177257pgs.22.2022.01.24.15.04.56; Mon, 24 Jan 2022 15:05:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="rQ/u/gs5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1842292AbiAXXBc (ORCPT + 99 others); Mon, 24 Jan 2022 18:01:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1577990AbiAXWBY (ORCPT ); Mon, 24 Jan 2022 17:01:24 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58E87C02415F; Mon, 24 Jan 2022 12:41:12 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ECE656153D; Mon, 24 Jan 2022 20:41:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4746C340E7; Mon, 24 Jan 2022 20:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056871; bh=huBJE9+l2qjWsYgu4trs0SBLj5tSgk3OSGlpb5Ca0FM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rQ/u/gs5SsEPiSudaty+VZDWMdlGG4sJM3pvutBcM/8g+MXpjE++aZK51zuDZqn99 9jQHUgli57ocTENl7T1U3h0VP1SBp7nfgEl/M7qsbRxwKQ2YCYQZq0lwZXEq8r4Ca4 +RlLvsChU3kpuI5l1kh6N+/Jlk+4NUOceiMDoR5I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zeal Robot , Ye Guojin , Mark Brown , Sasha Levin Subject: [PATCH 5.15 628/846] ASoC: imx-hdmi: add put_device() after of_find_device_by_node() Date: Mon, 24 Jan 2022 19:42:25 +0100 Message-Id: <20220124184122.694324615@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Ye Guojin [ Upstream commit f670b274f7f6f4b2722d7f08d0fddf606a727e92 ] This was found by coccicheck: ./sound/soc/fsl/imx-hdmi.c,209,1-7,ERROR missing put_device; call of_find_device_by_node on line 119, but without a corresponding object release within this function. Reported-by: Zeal Robot Signed-off-by: Ye Guojin Link: https://lore.kernel.org/r/20211110002910.134915-1-ye.guojin@zte.com.cn Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/imx-hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c index 34a0dceae6216..ef8d7a65ebc61 100644 --- a/sound/soc/fsl/imx-hdmi.c +++ b/sound/soc/fsl/imx-hdmi.c @@ -145,6 +145,8 @@ static int imx_hdmi_probe(struct platform_device *pdev) data->dai.capture_only = false; data->dai.init = imx_hdmi_init; + put_device(&cpu_pdev->dev); + if (of_node_name_eq(cpu_np, "sai")) { data->cpu_priv.sysclk_id[1] = FSL_SAI_CLK_MAST1; data->cpu_priv.sysclk_id[0] = FSL_SAI_CLK_MAST1; -- 2.34.1