Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3719329pxb; Mon, 24 Jan 2022 16:15:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJybVAT+J8gwy35lcQxgY61TGg7g4jIMxIHoFPIYNwYbF6hLy4hKfmegDnZ7Jc0/5f0AsJU0 X-Received: by 2002:a63:8c:: with SMTP id 134mr13547298pga.599.1643069716559; Mon, 24 Jan 2022 16:15:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643069716; cv=none; d=google.com; s=arc-20160816; b=e6wl45R0kaEaN9KPcF+T4Qt1134d+d2WbNbuQaXA2HG9XVv0sJ2hv/Weag9tATHWw8 vMhY42JUkHJ108jlIMXclbQ6eTUntVg+rdEl2Im8XHr9Dgw+Hl+hIgZzVUPI2bbAJnSZ M6qg/jtZUIXY8oX40B0q3K5kBQgaX0xRkxKXwvL3n0byWVA48Cz46kM/Auiv1QRuoZP+ b5zlg/bdanyQbBb4GzQhpu2kCt5b7HWCPbjpY5HYI2Ef0NOp/aQ77+1++JJoRtClsQXE FrOfEXYep+Po2J8CfZtPX1D6B1rBN7gElJXHFSI07bMiiw2veiZxmh1tD2CQ3TbO4XzF pIJw== 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=8lodZgyII+JOgCqs/fChoteuCrdtT7xTF1LwYTgkO6E=; b=Nez95ZkFerTgG91Yny7fFAzX/vgQx45oCLhEeVpYhfEUsRnzgAycbGRKmMrG5wRkyU AXHxRcG2N+4DGmouvYm5z5GwUevzoextGBgspTaTZRHqQWHm8rs31Q9Fr2FSpDDv/mhr 5cB6NMnMLjFSlUchCWel6PnHNcAZ113Pbb9As9zuGdqjySC6CbhKCZTu+9HyRs812Zlo Xn8eDe/8vSb6Il+0wehI1SJ6fbnoIvSmdivGmbLui4WSPgBwlKP6syIbP2zoW5v7yshY 7C2xRF367T/YuScVBOAv7qXYKybq6XFo0EqRy+kfdyZBb1BGt7Ws0TunMtNkRAGf7XZV tSIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wiM6+EOQ; 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 x67si13515972pfx.210.2022.01.24.16.15.03; Mon, 24 Jan 2022 16:15:16 -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=wiM6+EOQ; 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 S2372684AbiAYAML (ORCPT + 99 others); Mon, 24 Jan 2022 19:12:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1849605AbiAXX0P (ORCPT ); Mon, 24 Jan 2022 18:26:15 -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 144D8C01D7E1; Mon, 24 Jan 2022 13:30:02 -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 A652360C44; Mon, 24 Jan 2022 21:30:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8169BC340E4; Mon, 24 Jan 2022 21:30:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059801; bh=w4/sa6VIfwmLi3PNDuC9bjSMupcRF4wgztyNzCiHA9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wiM6+EOQsFwyxdw/ZK17hi5BiwdyYUdWOPs3HXGGdHDiUmydiYtTcA6OqjqavJX8N +bVg70eaPNMTLtdqdDJTQ6ILMVLYafbcQnddLakf8fB3+/1iMoJcndiYaVIPQW/FQh 6Cp9kENx2CLefwlDX36nyweuQSQ1AWjn3ZFc8EUk= 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.16 0739/1039] ASoC: imx-hdmi: add put_device() after of_find_device_by_node() Date: Mon, 24 Jan 2022 19:42:08 +0100 Message-Id: <20220124184150.168629965@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 f10359a288005..929f69b758af4 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