Re: [PATCH] fix: sound/soc/qcom: qcom_snd_parse_of: leaked device_node reference from of_parse_phandle on error path

From: Mark Brown

Date: Wed Jul 01 2026 - 11:56:22 EST


On Sat, Jun 27, 2026 at 11:49:15AM +0800, WenTao Liang wrote:
> In qcom_snd_parse_of(), of_parse_phandle() at line 124 acquires a
> reference on the platform's sound-dai node, stored in
> link->platforms->of_node. When codec initialization fails (goto err), the
> err label releases cpu, codec, and platform from of_get_child_by_name(),
> but does not release link->platforms->of_node from of_parse_phandle(),
> causing a device_node reference leak.

This doesn't apply against current code, please check and resend.

Attachment: signature.asc
Description: PGP signature