diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2019-05-31 09:01:37 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-03 17:43:23 +0100 |
commit | d6947bb234dcc86e878d502516d0fb9d635aa2ae (patch) | |
tree | bbbae59e2c1cbd58b8b409ee5b78ad98fff72026 /sound/soc/sof/intel/hda.c | |
parent | 347d1c4b0779cbeabaebb9b8e9967afe28db22f1 (diff) |
ASoC: hda: fix unbalanced codec dev refcount for HDA_DEV_ASOC
HDA_DEV_ASOC type codec device refcounts are managed differently
from HDA_DEV_LEGACY devices. The refcount is released explicitly
in snd_hdac_ext_bus_device_remove() for ASOC type devices.
So, remove the put_device() call in snd_hda_codec_dev_free()
for such devices to make the refcount balanced. This will prevent
the NULL pointer exception when the codec driver is released
after the card is freed.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/intel/hda.c')
0 files changed, 0 insertions, 0 deletions