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 6DF71134B3 for ; Mon, 26 Jun 2023 18:22:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7731EC433C0; Mon, 26 Jun 2023 18:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687803770; bh=HGNwtmBNEq7tGVmoFyJY42ip5IfyHQ8hZyNAmVrk+UU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AQpE625tksktUzJkLVWOx361Jz+Ib8DhaLHoOcsxHhEb45cm2ryPJgprBDtA5RrQS KB82ey7n3SU2PBOd/WrsLT/eO3snO94LdGbjqtHwHt+gaeHBq/iulTTo42Hs9X4VHy Ne+tHx4yyamGXVfLwPwUXeEKQOdnDPiBJG3YOyyI= 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.3 171/199] ASoC: simple-card: Add missing of_node_put() in case of error Date: Mon, 26 Jun 2023 20:11:17 +0200 Message-ID: <20230626180813.215802873@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230626180805.643662628@linuxfoundation.org> References: <20230626180805.643662628@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 e98932c167542..5f8468ff36562 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