summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/intel
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-10-21 14:38:48 +0200
committerMark Brown <broonie@kernel.org>2022-11-02 12:39:04 +0100
commit0aa60ddc219e7bac967605ecbe46f2f6cd24ee9c (patch)
treed4280ae5e26ca0ba29843e8ec76746dcd6a31cb5 /sound/soc/sof/intel
parentAdd support for MICFIL on i.MX93 platform (diff)
downloadlinux-0aa60ddc219e7bac967605ecbe46f2f6cd24ee9c.tar.xz
linux-0aa60ddc219e7bac967605ecbe46f2f6cd24ee9c.zip
ASoC: Intel: Skylake: fix possible memory leak in skl_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: e4746d94d00c ("ASoC: Intel: Skylake: 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: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20221021123849.456857-1-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/intel')
0 files changed, 0 insertions, 0 deletions