summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/sound/sgtl5000.yaml
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-10-21 20:38:49 +0800
committerMark Brown <broonie@kernel.org>2022-11-02 11:39:05 +0000
commit0d183c27ed30a3b21a8fbd6db4d1d7779faf1503 (patch)
tree75925435eb25e6d69965cabacb104c45aeeefd9b /Documentation/devicetree/bindings/sound/sgtl5000.yaml
parent0aa60ddc219e7bac967605ecbe46f2f6cd24ee9c (diff)
downloadlwn-0d183c27ed30a3b21a8fbd6db4d1d7779faf1503.tar.gz
lwn-0d183c27ed30a3b21a8fbd6db4d1d7779faf1503.zip
ASoC: SOF: Intel: hda-codec: fix possible memory leak in hda_codec_device_init()
If snd_hdac_device_register() fails, 'codec' and name allocated in dev_set_name() called in snd_hdac_device_init() are leaked. Fix this by calling put_device(), so they can be freed in snd_hda_codec_dev_release() and kobject_cleanup(). Fixes: 829c67319806 ("ASoC: SOF: Intel: Introduce HDA codec init and exit routines") Fixes: dfe66a18780d ("ALSA: hdac_ext: add extended HDA bus") Suggested-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20221021123849.456857-2-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/sound/sgtl5000.yaml')
0 files changed, 0 insertions, 0 deletions