]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: loongson: fix error release
authortangbin <tangbin@cmss.chinamobile.com>
Tue, 3 Sep 2024 09:06:20 +0000 (17:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:05 +0000 (16:29 +0200)
commitf606b9ac4abbe56816eee1941dccae9b6d3d8952
treee67eeea487136e12bfa43da010a2647dd6124c84
parent886ea81de41f7ee04dc5e0cfc54037df2769ce8c
ASoC: loongson: fix error release

[ Upstream commit 97688a9c5b1fd2b826c682cdfa36d411a5c99828 ]

In function loongson_card_parse_of(), when get device_node
'codec' failed, the function of_node_put(codec) should not
be invoked, thus fix error release.

Fixes: d24028606e76 ("ASoC: loongson: Add Loongson ASoC Sound Card Support")
Signed-off-by: tangbin <tangbin@cmss.chinamobile.com>
Link: https://patch.msgid.link/20240903090620.6276-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/loongson/loongson_card.c