[PATCH v2] ASOC: SOF: Intel: hda-codec: fix possible memory leak in hda_codec_device_init()
Kai Vehmanen
kai.vehmanen at linux.intel.com
Thu Oct 20 16:33:15 CEST 2022
Hi,
On Thu, 20 Oct 2022, Yang Yingliang wrote:
> 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().
seems good to me:
Reviewed-by: Kai Vehmanen <kai.vehmanen at linux.intel.com>
Br, Kai
More information about the Alsa-devel
mailing list