]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codecs: wcd938x: fix OF node leaks on probe failure
authorJohan Hovold <johan@kernel.org>
Mon, 1 Dec 2025 09:34:18 +0000 (10:34 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 2 Dec 2025 13:37:43 +0000 (13:37 +0000)
commit32ae6ebe171aca9ce10f5790523a9865b6c08b02
tree64a3d0bdc5ebe821bd88e70d2db351d69fda7079
parent22a03ca7c20c4ed3a75047709b0ad15160e29d58
ASoC: codecs: wcd938x: 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: 8d78602aa87a ("ASoC: codecs: wcd938x: add basic driver")
Cc: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20251201093419.24474-3-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd938x.c