]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ASoC: codecs: wcd937x: fix OF node leaks on probe failure
authorJohan Hovold <johan@kernel.org>
Mon, 1 Dec 2025 09:34:17 +0000 (10:34 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 2 Dec 2025 13:37:42 +0000 (13:37 +0000)
commit22a03ca7c20c4ed3a75047709b0ad15160e29d58
treeb9ec7bd8034c766a1948d9c8bcaf0c7d0454a8be
parentc5fae31f60a91dbe884ef2789fb3440bb4cddf05
ASoC: codecs: wcd937x: 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: 9be3ec196da4 ("ASoC: codecs: wcd937x: add wcd937x codec driver")
Cc: Prasad Kumpatla <prasad.kumpatla@oss.qualcomm.com>
Cc: Mohammad Rafi Shaik <mohammad.rafi.shaik@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-2-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd937x.c