]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: codecs: pm4125: clean up bind() device reference handling
authorJohan Hovold <johan@kernel.org>
Fri, 19 Dec 2025 14:24:12 +0000 (15:24 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 22 Dec 2025 18:03:10 +0000 (18:03 +0000)
commit97af54473f2a79f663bd14d7c75e97d04bd0e283
tree8ac3bd650d45b992af1cf3b54d4765273de33910
parenta0c8ee09f94ba5a29ee5f7557eb2bc100d5e739a
ASoC: codecs: pm4125: clean up bind() device reference handling

A recent change fixed a couple of device leaks on component bind failure
and on unbind but did so in a confusing way by adding misleading
initialisations at bind() and bogus NULL checks at unbind().

Cc: Ma Ke <make24@iscas.ac.cn>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20251219142412.19043-1-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pm4125.c