]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: loongson: fix error release
authortangbin <tangbin@cmss.chinamobile.com>
Tue, 3 Sep 2024 09:06:20 +0000 (17:06 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 3 Sep 2024 20:23:59 +0000 (21:23 +0100)
commit97688a9c5b1fd2b826c682cdfa36d411a5c99828
tree682f657da8cc4fb14aca0756c8203140273fd517
parent568dc2fae5d3697033f5e28cf4d6225b3db00461
ASoC: loongson: fix error release

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>
sound/soc/loongson/loongson_card.c