From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 060B8C433FE for ; Mon, 17 Jan 2022 17:00:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Rjiig/rgO0pGSKqYHzY30RJoOThTe523wME/on1omqE=; b=EH+r1O3k7rsE/N PKvLaJaW4EaST/MnngXLmlxf6yBuXxqDAbs+snvwGLDUdOG+MsLFcVNJeXUbJRccySZLqSF7QQKVw K4a/E2BGo5iH+q2lGlp0BnYGE+vLzite9Rf9qoouBKSaV2jLET0m4Mg4YoVuX7KaIlZ7TUdDIz5tU Yn3bfvERaWBQLjqdVsQpj2eAj2qpGKoPinA310mh4Q7ojNx5JsmBdhJknam6Be9Xn8gN05yM8IoKp UXIgncuTTs+AFr64RPR7lnyWXsh4/FxetZbogWEb3uHPYpFFAo9sUDoxl3U9yUOcLKE3ikO/c1Vbl Grnp1C2yfvExo01G6JJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9VLw-00Feug-Qc; Mon, 17 Jan 2022 16:59:33 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9VLe-00Fefk-Cv for linux-arm-kernel@lists.infradead.org; Mon, 17 Jan 2022 16:59:15 +0000 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 D64E4611CA; Mon, 17 Jan 2022 16:59:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AC5DC36AE3; Mon, 17 Jan 2022 16:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642438753; bh=w4/sa6VIfwmLi3PNDuC9bjSMupcRF4wgztyNzCiHA9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YJt58rzlZFzb3vUP2kw4BFZzdX3PAwcMJuHf9BU1yIqBQyAZ/TQjhVgv3HzrnCeDv 8MIb+vbnLlJr3stEzd6F0Mti7vNnfgd3kNw1jTv0kIA0R3hBO+Ul8qw4gwfQgpfTrg fyKhaWwF8UH942sIE1SSPY59uuOjXMXtqryJ35bYC5aDArb+o4cKtoOLWehaW4UzqW SlCiHA0+nPslbyYJF538FPUGlynhvz+f4Gx2Qf/RViiWibUlV7BvOIuXi3G2GWV5fR 3bob8xJPjHoSfPthZ70nW9ocoe+qgUO1+ds1cF25/ujCgWgn5iHvm8jQICFLP5G3Lw XMDHZGYGAjHag== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Ye Guojin , Zeal Robot , Mark Brown , Sasha Levin , nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, shawnguo@kernel.org, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.16 08/52] ASoC: imx-hdmi: add put_device() after of_find_device_by_node() Date: Mon, 17 Jan 2022 11:58:09 -0500 Message-Id: <20220117165853.1470420-8-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220117165853.1470420-1-sashal@kernel.org> References: <20220117165853.1470420-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220117_085914_529456_AA967B4C X-CRM114-Status: GOOD ( 11.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel