From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B148BA36 for ; Mon, 26 Jun 2023 18:33:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB2BCC433C0; Mon, 26 Jun 2023 18:33:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687804418; bh=UL51JaNgCJ359LQ05V71AD9hkKjINQqHj4mLIucZ88o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zd05OtQ/+K4WmW78WrnJxgStJTNoSwrpxLH0n7u+LcYnDapyaM4UGuyalyO9IKuSO hkm+vAvB601GY5KaitBB4ZNLWN5m3n2jICe8ivhyBKyFiH6VO9hnJ2uDD5aCSJINU6 t2ZDx/5b/p0s8qukSoTcyj88qVbRje6ftLLxmL0k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Herve Codina , Kuninori Morimoto , Mark Brown , Sasha Levin Subject: [PATCH 6.1 150/170] ASoC: simple-card: Add missing of_node_put() in case of error Date: Mon, 26 Jun 2023 20:11:59 +0200 Message-ID: <20230626180807.217018666@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230626180800.476539630@linuxfoundation.org> References: <20230626180800.476539630@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Herve Codina [ Upstream commit 8938f75a5e35c597a647c28984a0304da7a33d63 ] In the error path, a of_node_put() for platform is missing. Just add it. Signed-off-by: Herve Codina Acked-by: Kuninori Morimoto Link: https://lore.kernel.org/r/20230523151223.109551-9-herve.codina@bootlin.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/generic/simple-card.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index feb55b66239b8..fbb682747f598 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -416,6 +416,7 @@ static int __simple_for_each_link(struct asoc_simple_priv *priv, if (ret < 0) { of_node_put(codec); + of_node_put(plat); of_node_put(np); goto error; } -- 2.39.2