]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codecs: wcd939x: fix OF node leaks on probe failure
authorJohan Hovold <johan@kernel.org>
Mon, 1 Dec 2025 09:34:19 +0000 (10:34 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 2 Dec 2025 13:37:44 +0000 (13:37 +0000)
commit3ef4d9ede20db39bff34a559b04a1938fb31251e
treeb741721e820b13263fd454a05313e9fdb08835c0
parent32ae6ebe171aca9ce10f5790523a9865b6c08b02
ASoC: codecs: wcd939x: fix OF node leaks on probe failure

The component match entry release function will drop the references
taken while looking up the soundwire OF nodes when the platform device
is unbound.

Drop the additional references taken to avoid leaking them on probe
failure (e.g. probe deferral) and on driver unbind.

Fixes: 10f514bd172a ("ASoC: codecs: Add WCD939x Codec driver")
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20251201093419.24474-4-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd939x.c